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 total as the total, follow Go (#18750)
Wang Qifd7cd3289a3a
diff --git a/api/apps/restful_apis/bot_api.py b/api/apps/restful_apis/bot_api.pyindex cb2da1d456..e42950f359 100644--- a/api/apps/restful_apis/bot_api.py+++ b/api/apps/restful_apis/bot_api.py@@ -466,7 +466,6 @@ async def retrieval_test_embedded(tenant_id=None):enrich_chunks_with_document_metadata(ranks["chunks"], metadata_fields)ranks["labels"] = labels- ranks["total"] = len(ranks["chunks"])return get_json_result(data=ranks)diff --git a/api/apps/services/dataset_api_service.py b/api/apps/services/dataset_api_service.pyindex 842e78d126..505d7b677a 100644--- a/api/apps/services/dataset_api_service.py+++ b/api/apps/services/dataset_api_service.py@@ -1587,7 +1587,6 @@ async def search_datasets(tenant_id: str, req: dict):except Exception:logging.warning("search_datasets KG retrieval failed: datasets=%s tenant=%s", kb_ids, tenant_id, exc_info=True)ranks["chunks"] = settings.retriever.retrieval_by_children(ranks["chunks"], tenant_ids)- ranks["total"] = len(ranks["chunks"])for c in ranks["chunks"]:c.pop("vector", None)