---
title: "Test knowledge base"
description: "Test a knowledge base with an AI agent before you publish, read the test results, and fix poor answers."
---

# Test knowledge base

> Test a knowledge base with an AI agent before you publish, read the test results, and fix poor answers.

Testing your knowledge base ensures your AI agent provides accurate responses before publishing content to production.

## Run a test

1. Select the **Test** button to open the testing interface.
2. Select an AI agent from the dropdown menu.
3. Enter your message in the text box.
4. Click the send icon to begin the conversation.

## Understanding test results

The right panel provides tabs to help you analyze the test:

| Tab | What it shows |
|-----|---------------|
| **Details** | The source documents used to generate the response |
| **Context** | Variables and context data available during the conversation |
| **Conversation** | Full conversation history and message details |

## What to look for

When evaluating test results, check for:

- **Correct information** - Does the response match your knowledge base content?
- **Source accuracy** - Is the AI pulling from the right documents?
- **Complete answers** - Are all parts of the question addressed?
- **Natural language** - Does the response sound conversational?

## Troubleshooting poor results

If your AI agent provides incorrect or incomplete answers:

1. **Check content quality** - Review the source document for clarity
2. **Add more context** - Include background information in your content
3. **Reduce ambiguity** - Ensure similar topics don't overlap confusingly
4. **Test variations** - Try different phrasings of the same question

## Next steps

- [Publish content](https://docs.moveo.ai/docs/knowledge-base/knowledge-base-publish.md) - Make tested content available to live agents
- [Best practices](https://docs.moveo.ai/docs/knowledge-base/knowledge-base-best-practices.md) - Improve your content quality
- [Knowledge base overview](https://docs.moveo.ai/docs/knowledge-base/knowledge-base-overview.md) - Learn more about knowledge base features
