fix(workflow/nodes/knowledge-retrieval/use-config): Preserve rerankin… (#8842)

This commit is contained in:
Kevin9703 2024-09-28 10:54:50 +08:00 committed by GitHub
parent 27e33fb15c
commit a2e2f8a8c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -136,6 +136,8 @@ const useConfig = (id: string, payload: KnowledgeRetrievalNodeType) => {
top_k: multipleRetrievalConfig?.top_k || DATASET_DEFAULT.top_k,
score_threshold: multipleRetrievalConfig?.score_threshold,
reranking_model: multipleRetrievalConfig?.reranking_model,
reranking_mode: multipleRetrievalConfig?.reranking_mode,
weights: multipleRetrievalConfig?.weights,
}
})
setInputs(newInput)