Skip to content

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

fix(dataset): rebuild the navigation tree in the dataset owner index (#18932)

MarMar Labs439c3be9cb26
diff --git a/api/apps/services/dataset_api_service.py b/api/apps/services/dataset_api_service.py
index a6cd3409fc..a279ac9823 100644
--- a/api/apps/services/dataset_api_service.py
+++ b/api/apps/services/dataset_api_service.py
@@ -3689,7 +3689,7 @@ async def generate_nav(
continue
try:
await upsert_dataset_nav_doc(
- tenant_id=tenant_id,
+ tenant_id=kb.tenant_id,
kb_id=dataset_id,
doc_id=doc_id,
summary_or_tree=summary,