Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: Add dataset_id filters to the hit_count's subqueries (#33757)
FFXNbb1a6f8a5719
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.pyindex 0c441553be4..bc90c4ffbdf 100644--- a/api/controllers/console/datasets/datasets_document.py+++ b/api/controllers/console/datasets/datasets_document.py@@ -298,6 +298,7 @@ class DatasetDocumentListApi(Resource):if sort == "hit_count":sub_query = (sa.select(DocumentSegment.document_id, sa.func.sum(DocumentSegment.hit_count).label("total_hit_count"))+ .where(DocumentSegment.dataset_id == str(dataset_id)).group_by(DocumentSegment.document_id).subquery())