mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: render message reference and add avatar to MessageItem (#73)
* feat: add temporary conversation * feat: add avatar to MessageItem * feat: render message reference
This commit is contained in:
@ -54,7 +54,7 @@ export interface IConversation {
|
||||
dialog_id: string;
|
||||
id: string;
|
||||
message: Message[];
|
||||
reference: any[];
|
||||
reference: IReference[];
|
||||
name: string;
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
@ -64,3 +64,29 @@ export interface Message {
|
||||
content: string;
|
||||
role: MessageType;
|
||||
}
|
||||
|
||||
export interface IReference {
|
||||
chunks: Chunk[];
|
||||
doc_aggs: Docagg[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface Docagg {
|
||||
count: number;
|
||||
doc_id: string;
|
||||
doc_name: string;
|
||||
}
|
||||
|
||||
interface Chunk {
|
||||
chunk_id: string;
|
||||
content_ltks: string;
|
||||
content_with_weight: string;
|
||||
doc_id: string;
|
||||
docnm_kwd: string;
|
||||
img_id: string;
|
||||
important_kwd: any[];
|
||||
kb_id: string;
|
||||
similarity: number;
|
||||
term_similarity: number;
|
||||
vector_similarity: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user