Adding a Knowledge Base in a Prompt
To add a Knowledge Base in a Prompt open the Knowledge Base tab in the Configuration screen and select Add a Knowledge Base.
Here you can select which Knowledge Base to include by clicking on the key. Press Save when done selection.
Knowledge Base Type
Here you can decide whether the Knowledge Base type islast user message or query. This defines how the Knowledge Base will be queried. This will be seen in the following section.
Using a Knowledge Base in prompts
To use a Knowledge Base within prompts, use the{{key}} syntax where key is the key of your Knowledge Base.

You will see your Knowledge Base being correctly referenced if its key appears in blue.
Last User Message
By using the Last User Message type, the user message will be used as a query to retrieve the relevant chunks.Example

An example of using a Knowledge Base in Orq.ai
Query
By using the Query type, your predefined query will be used to retrieve the relevant chunks.Query using a variable
Within a Deployment context, you can make the query dynamic by using an Input Variable within the query.
{{query}}``invokeHere we are using the input variable {{query}} and it is reachable through the invoke call as an input, letting you dynamically define the Knowledge Base query at runtime.
Searching a Knowledge Base Model Garden