> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dify.ai/llms.txt
> Use this file 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

> [!NOTE]
>
> Agent knowledge bases are in beta.

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](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/retrieval-settings.md#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](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/use-knowledge-in-apps.md#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](https://docs.dify.ai/en/cloud/use-dify/knowledge/overview.md#choose).
>
> * To move a classic knowledge base over, see [how to upgrade](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/upgrade-from-classic.md).

## Set Up

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

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

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

## Test and Improve

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

* **[Adjust retrieval settings](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/retrieval-settings.md)**: 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](https://docs.dify.ai/en/cloud/use-dify/knowledge-base/use-knowledge-in-apps.md)**: Add it to workflows and new Agents, call it from your own code, or let coding agents read it.

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.