> ## Documentation index
> Fetch the complete documentation index at: https://dify-docs.docs7.io/llms.txt
> Ask it with GET https://dify-docs.docs7.io/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Agent Knowledge Base

> A knowledge base that reads, organizes, and indexes your content for you, so your part is choosing what goes in and checking what comes back

<Info>
Agent knowledge bases are in beta.
</Info>

An agent knowledge base processes your content for you: a reasoning model reads and organizes each document, and an embedding model makes it searchable. Your part is small: choose what goes in, set how deep it searches, and check what comes back.

At the default depth, a search matches by meaning and keywords. Set a deeper [retrieval depth](/en/cloud/use-dify/knowledge-base/retrieval-settings#retrieval-depth), and the knowledge base investigates a question the way an agent would: following related subjects across documents, or breaking the question into parts and reading whole sections.

Besides your apps, coding agents on your own machine can read its documents through the [Dify CLI](/en/cloud/use-dify/knowledge-base/use-knowledge-in-apps#from-your-coding-agent), browsing them like files in a folder.

<Tip>

- To weigh it against the classic knowledge base, see [which kind to create](/en/cloud/use-dify/knowledge/overview#choose).

- To move a classic knowledge base over, see [how to upgrade](/en/cloud/use-dify/knowledge-base/upgrade-from-classic).

</Tip>

## Set Up

- **[Create an agent knowledge base](/en/cloud/use-dify/knowledge-base/create-knowledge-base)**: Connect websites, online documents, or online drives that sync on your schedule, or upload files.

- **[Review indexed documents](/en/cloud/use-dify/knowledge-base/review-indexed-documents)**: Check how documents were split and summarized, and fix what didn't come through well.

- **[Set up image retrieval](/en/cloud/use-dify/knowledge-base/multimodal-retrieval)**: Choose models that let retrieval work with images.

## Test and Improve

- **[Test and tune retrieval](/en/cloud/use-dify/knowledge-base/test-and-tune)**: Try what your users will ask, and save the ones that must keep passing after every change as golden questions.

- **[Adjust retrieval settings](/en/cloud/use-dify/knowledge-base/retrieval-settings)**: Choose the models and the retrieval depth, and set how many chunks come back and how closely they must match.

## Use and Maintain

- **[Connect to apps, agents, and code](/en/cloud/use-dify/knowledge-base/use-knowledge-in-apps)**: Add it to workflows and new Agents, call it from your own code, or let coding agents read it.

- **[Maintain an agent knowledge base](/en/cloud/use-dify/knowledge-base/maintain-knowledge-base)**: Monitor the knowledge base once apps depend on it, fix what goes wrong, and keep its content up to date.
