Previewing the KB
The Preview KB feature allows you to test your knowledge base, experiment with different chunking options, and try out various AI models directly within your agentβs interface.
Accessing Preview KB
Navigate to Knowledge Tab
Open your agentβs dashboard and select the βKnowledgeβ tab.
Locate Preview KB
Look for the Preview KB
button in the upper right corner of the interface.
Preview KB User-Interface
Experiment with different queries, chunking options, and AI models to optimize your knowledge base.
Using the Debug Screen
The debug screen is a powerful tool for testing how your agentβs utlizises its knowledge. Hereβs the details you can see:
Returned Chunks
View all text chunks that match your query, along with their similarity scores.
Document Information
See the source document name and description for each chunk retrieved.
Token Usage
Monitor both input and output token consumption for each query.
Model Performance
Evaluate how different AI models perform with your knowledge base.
Understanding retrieval details
The retrieval details makes for advanced control over your agents usage, with detailed information about each chunk, tokens and LLM. The help you gauge the relevance of returned chunks to your query. This is crucial for retrieving the most useful information and for using the and tokens efficiently.
In the screenshots below the chunk with the highest similarity score ranked 0.683
, using 1262 input tokens and 220 to output the answer with claude 3.5 sonnet
Screenshot of chunks, similarity score, LLM used and tokens usage.
Monitoring token usage is especially important for cost-sensitive clients aiming to minimize credit and token consumption.
By leveraging the Preview KB feature and understanding the debug screen, you can fine-tune your agentβs knowledge base for enhanced accuracy and cost-effectiveness. This is considered an advanced feature, new users and agencies typically do not need to utilize this until they have gained more experience or their use cases become more complex.