Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: fixed the issue of error reporting when saving chat configuration #965 (#984)

balibabuc62834f870d8
diff --git a/web/src/pages/chat/chat-configuration-modal/index.tsx b/web/src/pages/chat/chat-configuration-modal/index.tsx
index ce8451f7cc..9465c0a803 100644
--- a/web/src/pages/chat/chat-configuration-modal/index.tsx
+++ b/web/src/pages/chat/chat-configuration-modal/index.tsx
@@ -145,7 +145,8 @@ const ChatConfigurationModal = ({
settledModelVariableMap[ModelVariableType.Precise],
icon: fileList,
llm_id: initialDialog.llm_id ?? modelId,
- vector_similarity_weight: 1 - initialDialog.vector_similarity_weight,
+ vector_similarity_weight:
+ 1 - (initialDialog.vector_similarity_weight ?? 0.3),
});
}
}, [initialDialog, form, visible, modelId]);