mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-27 07:54:19 +00:00
perf(rag): ui and related apis
This commit is contained in:
@@ -164,7 +164,7 @@ export interface ApiRespKnowledgeBaseFiles {
|
||||
}
|
||||
|
||||
export interface KnowledgeBaseFile {
|
||||
id: string;
|
||||
uuid: string;
|
||||
file_name: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
@@ -459,6 +459,13 @@ class HttpClient {
|
||||
return this.post('/api/v1/knowledge/bases', base);
|
||||
}
|
||||
|
||||
public updateKnowledgeBase(
|
||||
uuid: string,
|
||||
base: KnowledgeBase,
|
||||
): Promise<{ uuid: string }> {
|
||||
return this.put(`/api/v1/knowledge/bases/${uuid}`, base);
|
||||
}
|
||||
|
||||
public uploadKnowledgeBaseFile(
|
||||
uuid: string,
|
||||
file_id: string,
|
||||
|
||||
Reference in New Issue
Block a user