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 raptor bug. (#4192)
Kevin Huc373dba0bc3f
diff --git a/rag/nlp/search.py b/rag/nlp/search.pyindex 39fbc01508..3fef12c9df 100644--- a/rag/nlp/search.py+++ b/rag/nlp/search.py@@ -383,8 +383,8 @@ class Dealer:res = []bs = 128for p in range(0, max_count, bs):- res = self.dataStore.search(fields, [], condition, [], OrderByExpr(), p, bs, index_name(tenant_id), kb_ids)- dict_chunks = self.dataStore.getFields(res, fields)+ es_res = self.dataStore.search(fields, [], condition, [], OrderByExpr(), p, bs, index_name(tenant_id), kb_ids)+ dict_chunks = self.dataStore.getFields(es_res, fields)if dict_chunks:res.extend(dict_chunks.values())if len(dict_chunks.values()) < bs: