Overview
The AI Debugger provides:- Similarity Search Debugging: See which documents are retrieved for queries
- Relevance Scoring: Understand why certain documents rank higher
- Extraction Logging: View how content is extracted from documents
- Query Analysis: Test retrieval without running full agent responses
Prerequisites
System Requirements
- AGO platform deployed and accessible
- Admin access to debugging tools
Knowledge Required
- Understanding of vector similarity search
- Familiarity with your knowledge base structure
Accessing the Debugger
Via Admin Interface
- Navigate to AI Studio → Search Lab for similarity search debugging
- Navigate to AI Studio → Agent Lab for conversation debugging
Debug Modes
Similarity Search Debugging
Test how queries match against your knowledge base without involving the full agent pipeline.
Search Lab - Test document retrieval
Running a Search Debug
- Enter your test query (e.g., “How do I reset my password?”)
- Select the agent to test against
- Configure the Top K value (number of documents to retrieve)
- Click Run Search
Understanding Results
Results display documents ranked by relevance:Conversation Debug
Analyze why an agent gave a specific response in an existing conversation.Accessing Conversation Debug
- Go to Chat History → Select conversation
- Click Debug on a specific message
- View the debug panel
Debug Information
Debug Panel Structure

Agent Lab - Debug conversation messages
- Retrieved Documents: List of documents with relevance scores
- Tool Calls: Any tools invoked during response generation
- System Prompt: The full prompt sent to the LLM (expandable)
- Token Usage: Input, output, and total token counts
Extraction Logging
View how documents are processed during knowledge sync.Accessing Extraction Logs
- Go to Knowledge → Sources
- Select a knowledge source
- Click View Extraction Logs
Log Information
Common Debugging Scenarios
Scenario 1: Agent Can’t Find Relevant Content
Symptom: Agent says “I don’t know” for documented topics. Debug Steps:- Open AI Debugger → Similarity Search
- Enter the user’s exact question
- Review retrieved documents:
- Are relevant docs in results?
- What are their similarity scores?
- Document not synced (check source status)
- Query wording doesn’t match content
- Chunks are too large (relevant content diluted)
- Wrong knowledge source assigned to agent
Scenario 2: Wrong Document Ranked Higher
Symptom: Irrelevant content appears before relevant content. Debug Steps:- Run similarity search with the query
- Compare similarity vs reranked scores
- Check if reranker is enabled
- Enable reranker for better relevance
- Improve document titles/headers
- Adjust chunk size for better granularity
- Add more specific content
Scenario 3: Agent Uses Wrong Tool
Symptom: Agent creates ticket when it should answer. Debug Steps:- Open conversation debug for the message
- Check retrieved documents (empty = no context)
- Review tool call details
- Check tool descriptions in configuration
- Improve tool prompt/description
- Verify knowledge covers the topic
- Adjust tool trigger conditions in prompt
Scenario 4: Response Quality Varies
Symptom: Same question gets different quality answers. Debug Steps:- Compare debug info across multiple instances
- Check if different documents are retrieved
- Review LLM temperature settings
- Lower temperature for consistency
- Pin critical documents to agent
- Improve document quality
API Reference
For programmatic debugging access, see the Public API v1 Reference.Best Practices
Regular Debugging
- Weekly Reviews: Sample random conversations to check quality
- After Sync: Debug after major knowledge updates
- User Complaints: Debug reported issues immediately
Improving Retrieval
- Test variations: Try different phrasings of the same question
- Check coverage: Verify all topics have matching content
- Monitor scores: Low similarity scores indicate gaps
- Rerank selectively: Enable for complex knowledge bases
Documentation
- Keep notes on common issues
- Document patterns that cause problems
- Share findings with content team
Troubleshooting
Issue: Debug panel loads slowly
Issue: Debug panel loads slowly
Solutions:
- Reduce top_k for faster results
- Check system performance
- Verify embedding service is responsive
Issue: No documents returned
Issue: No documents returned
Solutions:
- Verify knowledge source is synced
- Check agent has source assigned
- Try broader query terms
- Check embedding model is configured
Issue: Similarity scores all low
Issue: Similarity scores all low
Solutions:
- Review document quality
- Check if content matches expected queries
- Verify embedding model is appropriate
- Consider different chunking strategy
Related
- Simulation Testing — Automated testing
- Agents — Agent configuration reference
