mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-02 16:55:42 +08:00
### What problem does this PR solve? 1. Split dataset api to gateway and service, and modify web UI to use restful http api. 2. Old KB releated APIs are commented. ### Type of change - [x] Refactoring --------- Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
43 lines
866 B
TypeScript
43 lines
866 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 {
|
|
id?: string;
|
|
page?: number;
|
|
page_size?: number;
|
|
ext?: {
|
|
keywords?: string;
|
|
owner_ids?: string[];
|
|
parser_id?: string;
|
|
};
|
|
}
|
|
|
|
export interface IFetchDocumentListRequestBody {
|
|
suffix?: string[];
|
|
run_status?: string[];
|
|
return_empty_metadata?: boolean;
|
|
metadata?: Record<string, string[]>;
|
|
}
|