Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: align shared search result total (#18200)

buua436827ec11525dc
diff --git a/api/apps/restful_apis/bot_api.py b/api/apps/restful_apis/bot_api.py
index b52f7f9217..c16e3d6ca7 100644
--- a/api/apps/restful_apis/bot_api.py
+++ b/api/apps/restful_apis/bot_api.py
@@ -462,6 +462,7 @@ 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)