ragflow/web/src/interfaces/request/knowledge.ts
chanx edb32b1304
fix: Change the data in the dataset page to be obtained using the interface (#8726)
### What problem does this PR solve?

Change the data in the dataset page to be obtained using the interface,
and change the import to obtain all data every 15 seconds to obtain the
data of the current page every 5 seconds when parsing the existing file.
[#3221](https://github.com/infiniflow/ragflow/issues/3221)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-07-08 19:19:07 +08:00

26 lines
548 B
TypeScript

export interface ITestRetrievalRequestBody {
question: string;
similarity_threshold: number;
keywords_similarity_weight: number;
rerank_id?: string;
top_k?: number;
use_kg?: boolean;
highlight?: boolean;
kb_id?: 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[];
}