mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 21:19:00 +08:00
fix hybrid search when document is none (#1603)
Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
parent
1f58f15bff
commit
f704094a5f
@ -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…
x
Reference in New Issue
Block a user