Fix: The knowledge base selected by the retrieval node is not displayed. (#14013)

### What problem does this PR solve?

Fix: The knowledge base selected by the retrieval node is not displayed.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-04-10 09:40:35 +08:00
committed by GitHub
parent 52f5880d21
commit 56810ec5a3
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ function InnerRetrievalNode({
isConnectable = true,
selected,
}: NodeProps<BaseNode<RetrievalFormSchemaType>>) {
const knowledgeBaseIds: string[] = get(data, 'form.kb_ids', []);
const knowledgeBaseIds: string[] = get(data, 'form.dataset_ids', []);
const memoryIds: string[] = get(data, 'form.memory_ids', []);
const { list: knowledgeList } = useFetchKnowledgeList(true);

View File

@@ -46,7 +46,7 @@ export const RetrievalPartialSchema = {
keywords_similarity_weight: z.coerce.number(),
top_n: z.coerce.number(),
top_k: z.coerce.number(),
database_ids: z.array(z.string()),
dataset_ids: z.array(z.string()),
rerank_id: z.string(),
empty_response: z.string(),
cross_languages: z.array(z.string()),