feat: add functions for frontend of kb

This commit is contained in:
WangCham
2025-07-17 23:52:46 +08:00
parent 2dfa83ff22
commit cb868ee7b2
7 changed files with 71 additions and 1 deletions

View File

@@ -55,6 +55,15 @@ export interface LLMModel {
// updated_at: string;
}
export interface KnowledgeBase {
uuid?: string;
name: string;
description: string;
embedding_model_uuid: string;
created_at?: string;
top_k?: number;
}
export interface ApiRespProviderEmbeddingModels {
models: EmbeddingModel[];
}

View File

@@ -21,6 +21,7 @@ export enum DynamicFormItemType {
LLM_MODEL_SELECTOR = 'llm-model-selector',
PROMPT_EDITOR = 'prompt-editor',
UNKNOWN = 'unknown',
KNOWLEDGE_BASE_SELECTOR = 'knowledge-base-selector',
}
export interface IDynamicFormItemOption {