Unverified Commit f704094a authored by Jyong's avatar Jyong Committed by GitHub

fix hybrid search when document is none (#1603)

Co-authored-by: 's avatarjyong <jyong@dify.ai>
parent 1f58f15b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment