From f704094a5ff102c3ff169e847a660ef3f7c11109 Mon Sep 17 00:00:00 2001 From: Jyong <76649700+JohnJyong@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:53:42 +0800 Subject: [PATCH] fix hybrid search when document is none (#1603) Co-authored-by: jyong --- api/core/orchestrator_rule_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/core/orchestrator_rule_parser.py b/api/core/orchestrator_rule_parser.py index aef020a246..9b31fa69c9 100644 --- a/api/core/orchestrator_rule_parser.py +++ b/api/core/orchestrator_rule_parser.py @@ -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