RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix 6030 (#6070)
Zhichang Yuc00def5b7122
diff --git a/graphrag/search.py b/graphrag/search.pyindex aa65fc6f5c..e0df92235f 100644--- a/graphrag/search.py+++ b/graphrag/search.py@@ -19,6 +19,7 @@ from collections import defaultdictfrom copy import deepcopyimport json_repairimport pandas as pd+import triofrom api.utils import get_uuidfrom graphrag.query_analyze_prompt import PROMPTS@@ -41,7 +42,7 @@ class KGSearch(Dealer):return responsedef query_rewrite(self, llm, question, idxnms, kb_ids):- ty2ents = get_entity_type2sampels(idxnms, kb_ids)+ ty2ents = trio.run(lambda: get_entity_type2sampels(idxnms, kb_ids))hint_prompt = PROMPTS["minirag_query2kwd"].format(query=question,TYPE_POOL=json.dumps(ty2ents, ensure_ascii=False, indent=2))result = self._chat(llm, hint_prompt, [{"role": "user", "content": "Output:"}], {"temperature": .5})