fix(web): app's knowledge support graph retrieval

This commit is contained in:
zhaoying
2026-04-07 17:20:19 +08:00
parent af86cb3556
commit 5d439346a1
6 changed files with 8 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ const FormItem = Form.Item;
interface KnowledgeConfigModalProps {
refresh: (values: KnowledgeConfigForm, type: 'knowledgeConfig') => void;
}
const retrieveTypes: RetrieveType[] = ['participle', 'semantic', 'hybrid']
const retrieveTypes: RetrieveType[] = ['participle', 'semantic', 'hybrid', 'graph']
const KnowledgeConfigModal = forwardRef<KnowledgeConfigModalRef, KnowledgeConfigModalProps>(({
refresh,

View File

@@ -5,7 +5,7 @@ export interface RerankerConfig {
reranker_id?: string | undefined;
reranker_top_k?: number | undefined;
}
export type RetrieveType = 'participle' | 'semantic' | 'hybrid'
export type RetrieveType = 'participle' | 'semantic' | 'hybrid' | 'graph'
export interface KnowledgeConfigForm {
kb_id?: string;
similarity_threshold?: number;