feat: Show prompt send to LLM for assistant answer #2098 (#2142)

### What problem does this PR solve?

feat: Show prompt send to LLM for assistant answer #2098
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-28 19:05:15 +08:00
committed by GitHub
parent 527ebec2f5
commit 190e144a70
9 changed files with 232 additions and 2 deletions

View File

@ -68,6 +68,8 @@ export interface Message {
content: string;
role: MessageType;
doc_ids?: string[];
prompt?: string;
id?: string;
}
export interface IReference {
@ -80,6 +82,8 @@ export interface IAnswer {
answer: string;
reference: IReference;
conversationId?: string;
prompt?: string;
id?: string;
}
export interface Docagg {