Query Knowledge
The Query Knowledge node allows you to retrieve information from a knowledge base within a Magick flow. It provides a flexible way to access stored knowledge and integrate it into your spells.Inputs
flow(required): The input flow containing the data to be processed.query(optional): The query string used to search the knowledge base. If left empty, the node will return all available knowledge.
Outputs
flow: The output flow with the retrieved knowledge added.knowledge: The knowledge retrieved from the knowledge base based on the provided query.
Configuration
This node does not have any additional configuration options.Usage
- Connect the input flow to the
flowinput port of the Query Knowledge node. - Optionally, provide a query string in the
queryinput field to search for specific knowledge. Leave it empty to retrieve all knowledge. - Connect the
flowoutput port to the next node in your spell to continue processing the flow with the retrieved knowledge. - Use the
knowledgeoutput port to access the retrieved knowledge in subsequent nodes or for further processing.
Example
Here’s an example of how to use the Query Knowledge node in a Magick spell:Best Practices
- Be specific with your query to retrieve the most relevant knowledge.
- If you want to retrieve all available knowledge, leave the
queryinput empty. - Use the retrieved knowledge in combination with other nodes to create powerful and dynamic spells.
Common Issues
- If the
queryinput is too broad or ambiguous, the node may return a large amount of knowledge, which can impact performance. - Ensure that the knowledge base contains relevant and up-to-date information for accurate results.
