mirror of https://github.com/langgenius/dify.git
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