mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-03-18 21:30:01 +08:00
### What problem does this PR solve? Fix: Metadata bugs. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
38 lines
767 B
TypeScript
38 lines
767 B
TypeScript
export interface ITestRetrievalRequestBody {
|
|
question: string;
|
|
similarity_threshold: number;
|
|
vector_similarity_weight: number;
|
|
rerank_id?: string;
|
|
top_k?: number;
|
|
use_kg?: boolean;
|
|
highlight?: boolean;
|
|
kb_id?: string[];
|
|
meta_data_filter?: {
|
|
logic?: string;
|
|
method?: string;
|
|
manual?: Array<{
|
|
key: string;
|
|
op: string;
|
|
value: string;
|
|
}>;
|
|
semi_auto?: string[];
|
|
};
|
|
}
|
|
|
|
export interface IFetchKnowledgeListRequestBody {
|
|
owner_ids?: string[];
|
|
}
|
|
|
|
export interface IFetchKnowledgeListRequestParams {
|
|
kb_id?: string;
|
|
keywords?: string;
|
|
page?: number;
|
|
page_size?: number;
|
|
}
|
|
|
|
export interface IFetchDocumentListRequestBody {
|
|
suffix?: string[];
|
|
run_status?: string[];
|
|
metadata?: Record<string, string[]>;
|
|
}
|