mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-02 00:07:47 +08:00
Refactor dataset / kb API to RESTFul style (#13263)
### 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
This commit is contained in:
@ -11,16 +11,16 @@ export interface IConnector {
|
||||
// knowledge base
|
||||
export interface IKnowledge {
|
||||
avatar?: any;
|
||||
chunk_num: number;
|
||||
chunk_count: number;
|
||||
create_date: string;
|
||||
create_time: number;
|
||||
created_by: string;
|
||||
description: string;
|
||||
doc_num: number;
|
||||
document_count: number;
|
||||
id: string;
|
||||
name: string;
|
||||
parser_config: ParserConfig;
|
||||
parser_id: string;
|
||||
chunk_method: string;
|
||||
pipeline_id: string;
|
||||
pipeline_name: string;
|
||||
pipeline_avatar: string;
|
||||
@ -32,7 +32,7 @@ export interface IKnowledge {
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
vector_similarity_weight: number;
|
||||
embd_id: string;
|
||||
embedding_model: string;
|
||||
nickname: string;
|
||||
operator_permission: number;
|
||||
size: number;
|
||||
@ -47,7 +47,7 @@ export interface IKnowledge {
|
||||
|
||||
export interface IKnowledgeResult {
|
||||
kbs: IKnowledge[];
|
||||
total: number;
|
||||
total_datasets: number;
|
||||
}
|
||||
|
||||
export interface Raptor {
|
||||
|
||||
Reference in New Issue
Block a user