mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 03:00:20 +08:00
compatible query is None
This commit is contained in:
parent
0026cb404f
commit
85e568e114
@ -49,6 +49,12 @@ class KnowledgeRetrievalNode(BaseNode):
|
||||
variables = {
|
||||
'query': query
|
||||
}
|
||||
if not query:
|
||||
return NodeRunResult(
|
||||
status=WorkflowNodeExecutionStatus.FAILED,
|
||||
inputs=variables,
|
||||
error="Query is required."
|
||||
)
|
||||
# retrieve knowledge
|
||||
try:
|
||||
results = self._fetch_dataset_retriever(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user