diff --git a/api/core/rag/retrieval/dataset_retrieval.py b/api/core/rag/retrieval/dataset_retrieval.py index 286ecd4c0..4603957d6 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)