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
Refactor:Improve the logic in search.py (#8716)
Stephen Hu8af0d04ad0d4
diff --git a/rag/nlp/search.py b/rag/nlp/search.pyindex ad93c220e7..6b83008602 100644--- a/rag/nlp/search.py+++ b/rag/nlp/search.py@@ -126,12 +126,11 @@ class Dealer:total = self.dataStore.getTotal(res)else:matchText, _ = self.qryr.question(qst, min_match=0.1)- filters.pop("doc_id", None)matchDense.extra_options["similarity"] = 0.17res = self.dataStore.search(src, highlightFields, filters, [matchText, matchDense, fusionExpr],orderBy, offset, limit, idx_names, kb_ids, rank_feature=rank_feature)total = self.dataStore.getTotal(res)- logging.debug("Dealer.search 2 TOTAL: {}".format(total))+ logging.debug("Dealer.search 2 TOTAL: {}".format(total))for k in keywords:kwds.add(k)