Skip to content

Commit

Permalink
fix: redundant check for available_document_count (#8491)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-omr authored Sep 22, 2024
1 parent ddf6569 commit 8fd297f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/core/rag/retrieval/dataset_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def retrieve(
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)
Expand Down Expand Up @@ -468,7 +468,7 @@ def to_dataset_retriever_tool(
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)
Expand Down

0 comments on commit 8fd297f

Please sign in to comment.