I built my first Knowledge Base and I’m not sure how to validate that it’s returning the right results. Is there a built-in way to query and test it directly? I don’t want to push it to production and find out it’s broken through user complaints! ![]()
At Lyzr, you can start testing your knowledge base even before adding it to an agent.
Go to Knowledge Base → Create New → Fill in the details.
You will be taken to a new page where you can upload files or add websites.
Once added, you’ll see the files on the left and a retrieval testing section on the right (as shown in the image below).
When you ask questions, the system searches the knowledge base and retrieves relevant information as multiple chunks, each with a score. Based on these chunks, you can assess whether the system is fetching relevant information from the right documents.
However, it’s even better to test after adding the knowledge base to an agent. You can ask questions to evaluate how the agent retrieves and generates answers.
Only once you feel confident with the responses would we recommend moving to production.
