Writer
Ask graph question
Asks a natural language question using one or more knowledge graphs and puts the result into a state variable.
Fields
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Question | Text | - | - | The natural language question to ask. | - | - |
Use streaming | Text | - | yes | - |
| Allowed values: yes, no |
State Element | Text | - | - | State variable to store or stream the response into. Reference the state element directly, i.e. use “my_var” instead of ”@”. | - | - |
Graph Ids | Object | - | [] | IDs of the graphs to query. | - | - |
Use subqueries | Text | - | no | Enables LLM to ask follow-up questions to the knowledge graph. This improves answers, but may be slower. |
| Allowed values: yes, no |
End states
Below are the possible end states of the block call.
Name | Field | Type | Description |
---|---|---|---|
Success | - | success | Successfully streamed the answer. |
Error | - | error | If the function raises an Exception. |