Skip to content

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

Fix: Set default rerank_model to empty string in Chat class (#8130)

Liu An2ff911b08cc9
diff --git a/sdk/python/ragflow_sdk/modules/chat.py b/sdk/python/ragflow_sdk/modules/chat.py
index e85011504d..39e6815368 100644
--- a/sdk/python/ragflow_sdk/modules/chat.py
+++ b/sdk/python/ragflow_sdk/modules/chat.py
@@ -46,7 +46,7 @@ class Chat(Base):
self.top_n = 8
self.top_k = 1024
self.variables = [{"key": "knowledge", "optional": True}]
- self.rerank_model = None
+ self.rerank_model = ""
self.empty_response = None
self.opener = "Hi! I'm your assistant, what can I do for you?"
self.show_quote = True