mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: test document chunks (#62)
This commit is contained in:
@ -75,3 +75,30 @@ export interface IChunk {
|
||||
img_id: string;
|
||||
important_kwd: any[];
|
||||
}
|
||||
|
||||
export interface ITestingChunk {
|
||||
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: number[];
|
||||
vector_similarity: number;
|
||||
}
|
||||
|
||||
export interface ITestingDocument {
|
||||
count: number;
|
||||
doc_id: string;
|
||||
doc_name: string;
|
||||
}
|
||||
|
||||
export interface ITestingResult {
|
||||
chunks: ITestingChunk[];
|
||||
doc_aggs: Record<string, number>;
|
||||
total: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user