fix hybrid search when document is none (#1603)

Co-authored-by: jyong <jyong@dify.ai>
pull/1604/head^2
Jyong 2 years ago committed by GitHub
parent 1f58f15bff
commit f704094a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -207,10 +207,10 @@ class OrchestratorRuleParser:
).first()
if not dataset:
return None
continue
if dataset and dataset.available_document_count == 0 and dataset.available_document_count == 0:
return None
continue
dataset_ids.append(dataset.id)
if retrieval_model == 'single':
retrieval_model = dataset.retrieval_model if dataset.retrieval_model else default_retrieval_model

Loading…
Cancel
Save