Prerequisites
- You have activated Knowledge AI.
- You have created a project in Cognigy.
- You have added a large language model (LLM) to your project that supports knowledge search and answer extraction. For more details on how to add a model, read the Generative AI documentation.
Configure knowledge for an agent
To configure knowledge for an agent, complete the following steps:1
Create knowledge store
- In your project, go to Design > Knowledge.
- In the Create knowledge store wizard, configure the following:
- Name — enter a unique name, for example,
xApps knowledge. - (Optional) Description — provide a brief description of the knowledge store.
- Click Save. The newly created knowledge store appears on the Knowledge page.
2
Create knowledge source
For this step, download this Cognigy text (CTXT) file about xApps.
- On the Knowledge page, select the knowledge store you created.
- Click Add knowledge and select CTXT file.
- Drag and drop the CTXT file to the field on the Upload CTXT file page or click Browse files and select the CTXT file from your device.
- Click Save.
3
Configure agent with knowledge
- Go to Design > Agent and follow one of the options:
- Edit an agent by selecting
> Edit. - Create an agent by clicking + Create agent and configure the following:
- Name — enter a unique name, for example,
xApps Expert. - Instructions — enter instructions about what the agent must accomplish, for example,
You help customers with questions about Cognigy.
- Name — enter a unique name, for example,
- In the Select knowledge store section on the Knowledge tab, configure the following:
- Search — select Agent decides.
- If search fails — select Decline with generic error.
- From the knowledge store list, select the knowledge store you created. The Search instructions field appears.
- In the Search instructions field, enter when the agent must search the knowledge store for an answer, for example,
Use this knowledge store when the user asks about xApps.
4
Test your agent's knowledge
- Click
to open the interaction panel. - Ask the agent
What are xApps?. The agent searches the knowledge store and generates an answer in the chat.
Use knowledge with flows
If your agents use flows, you can also retrieve information from a knowledge store with the Search Extract Output node.What’s next?
- Try creating a knowledge store with knowledge sources relevant to your business needs.
- Add more than one knowledge store to your agent with a knowledge tool to cater to your needs.