Skip to content

armgit / dify

Public Imported from GitHub
0

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.

fix: redundant check for available_document_count (#8491)

omr8fd297f8b406
diff --git a/api/core/rag/retrieval/dataset_retrieval.py b/api/core/rag/retrieval/dataset_retrieval.py
index 286ecd4c036..4603957d685 100644
--- a/api/core/rag/retrieval/dataset_retrieval.py
+++ b/api/core/rag/retrieval/dataset_retrieval.py
@@ -110,7 +110,7 @@ class DatasetRetrieval:
continue
# pass if dataset is not available
- if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
+ if dataset and dataset.available_document_count == 0:
continue
available_datasets.append(dataset)
@@ -468,7 +468,7 @@ class DatasetRetrieval:
continue
# pass if dataset is not available
- if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
+ if dataset and dataset.available_document_count == 0:
continue
available_datasets.append(dataset)