Asks a natural language question using one or more knowledge graphs and puts the result into a state variable.

Fields

NameTypeControlDefaultDescriptionOptionsValidation
QuestionText--The natural language question to ask.--
Use streamingText-yes-
  • yes - Yes
  • no - No

Allowed values: yes, no

State ElementText--State variable to store or stream the response into. Reference the state element directly, i.e. use “my_var” instead of ”@”.--
Graph IdsGraph Ids-[]IDs of the graphs to query.--
Use subqueriesText-noEnables LLM to ask follow-up questions to the knowledge graph. This improves answers, but may be slower.
  • yes - Yes
  • no - No

Allowed values: yes, no

End states

Below are the possible end states of the block call.

NameFieldTypeDescription
Success-successSuccessfully streamed the answer.
Error-errorIf the function raises an Exception.

The Ask graph question block stores the answer to the question in a state variable that you set in the State Element field.

Access the output of an Ask graph question block by referencing the state variable you defined. You can also access the output of an Ask graph question block using the @{result} variable in the block that follows it in a blueprint.