compatible query is None

This commit is contained in:
jyong 2024-04-03 18:38:27 +08:00
parent 62919a9ff5
commit 0026cb404f
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ class KnowledgeRetrievalNode(BaseNode):
"""
Handle query.
"""
if not query:
return
for dataset_id in dataset_ids:
dataset_query = DatasetQuery(
dataset_id=dataset_id,