diff --git a/graph/component/rewrite.py b/graph/component/rewrite.py index 9f645653..11a37466 100644 --- a/graph/component/rewrite.py +++ b/graph/component/rewrite.py @@ -54,7 +54,7 @@ class RewriteQuestion(Generate, ABC): setattr(self, "_loop", 0) if self._loop >= self._param.loop: self._loop = 0 - raise Exception("Can't find relevant information.") + raise Exception("Maximum loop time exceeds. Can't find relevant information.") self._loop += 1 q = "Question: " for r, c in self._canvas.history[::-1]: diff --git a/graph/templates/HR_callout_zh.json b/graph/templates/HR_callout_zh.json index d476e308..5955b8a7 100644 --- a/graph/templates/HR_callout_zh.json +++ b/graph/templates/HR_callout_zh.json @@ -193,7 +193,7 @@ "obj": { "component_name": "Retrieval", "params": { - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2, @@ -574,7 +574,7 @@ { "data": { "form": { - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2, diff --git a/graph/templates/customer_service.json b/graph/templates/customer_service.json index ab549f69..4bcec78a 100644 --- a/graph/templates/customer_service.json +++ b/graph/templates/customer_service.json @@ -151,7 +151,7 @@ "obj": { "component_name": "Retrieval", "params": { - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2, @@ -468,7 +468,7 @@ { "data": { "form": { - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2, diff --git a/graph/templates/general_chat_bot.json b/graph/templates/general_chat_bot.json index 94df8992..3a9c694d 100644 --- a/graph/templates/general_chat_bot.json +++ b/graph/templates/general_chat_bot.json @@ -54,7 +54,7 @@ "component_name": "Retrieval", "params": { "empty_response": "Sorry, knowledge base has noting related information.", - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2, @@ -216,7 +216,7 @@ "data": { "form": { "empty_response": "Sorry, knowledge base has noting related information.", - "kb_ids": ["869a236818b811ef91dffa163e197198"], + "kb_ids": [], "keywords_similarity_weight": 0.3, "rerank_id": "BAAI/bge-reranker-v2-m3", "similarity_threshold": 0.2,