Fix/agent external knowledge retrieval (#9241)

This commit is contained in:
Jyong 2024-10-11 19:21:03 +08:00 • committed by GitHub
commit 42b02b3a5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 225 additions and 92 deletions

View file

@ -539,7 +539,7 @@ class DatasetRetrieval:
continue
# pass if dataset is not available
if dataset and dataset.available_document_count == 0:
if dataset and dataset.provider != "external" and dataset.available_document_count == 0:
continue
available_datasets.append(dataset)