> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/en-us/knowledge-base/agent.md).

# Use with Agent

After binding a knowledge base to an Agent, the Agent can search and read authorized materials in multi-step tasks; when it is clear that the materials need to be updated, knowledge base management can also be enabled.

{% hint style="info" %}
Regular chat is suitable for one-time Q\&A, while Agent is suitable for ongoing research, comparison, file generation, and step-by-step acceptance. The Agent only accesses the knowledge bases bound in its configuration.
{% endhint %}

## The difference between regular chat and Agent

| Regular chat                                               | Agent                                                         |
| ---------------------------------------------------------- | ------------------------------------------------------------- |
| Temporarily select a knowledge base before each message    | Long-term binding in the Agent configuration                  |
| Suitable for instant Q\&A and short comparisons            | Suitable for multi-step research and file delivery            |
| Mainly uses retrieved snippets to answer                   | Can search materials and manage knowledge bases by permission |
| The current conversation determines the scope of materials | The Agent configuration determines the accessible scope       |

## Configure a read-only knowledge base Agent

{% stepper %}
{% step %}

### 1. First make sure the knowledge base has passed acceptance

Confirm the target materials are ready, and complete retrieval testing with real questions. The Agent cannot make up for missing content or incorrect chunking.
{% endstep %}

{% step %}

### 2. Open the Agent editing window

Go to \[Work], select the target Agent, and open \[Edit Agent] from the menu.
{% endstep %}

{% step %}

### 3. Bind the minimum necessary knowledge bases

Open the \[Knowledge Base] tab and click \[Add Knowledge Base]. Bind only the libraries needed for this task to avoid interference between cross-department or cross-version materials.
{% endstep %}

{% step %}

### 4. Enable knowledge base search

Open \[Built-in Tools] and enable \[Knowledge Base Search]. For read-only research, Q\&A, summaries, and comparisons, this is usually enough.

<figure><img src="/files/a01523c20a15851f6f4d60c5871d8a843eccc272" alt="Agent 内置工具设置中的知识库搜索和知识库管理能力"><figcaption><p>Search is for reading, management is for changing materials; start with the minimum permissions by default.</p></figcaption></figure>
{% endstep %}

{% step %}

### 5. Test with a clearly bounded task

Ask the Agent to list the sources first, then give the conclusion; if the materials do not support it, state that clearly and do not fill in the gaps from common sense.
{% endstep %}

{% step %}

### 6. Verify the sources and deliverables

Check which knowledge base each conclusion comes from, whether facts and recommendations in the file are separated, and whether unsupported parts are marked.
{% endstep %}
{% endstepper %}

## How to choose between built-in tools, knowledge bases, skills, and MCP

<figure><img src="/files/9b00652317bad3dcfaeb99d65a0f86a7f0cab964" alt="说明 Agent 内置工具、知识库、技能和 MCP 各自用途的选择关系图"><figcaption><p>Use knowledge bases to look up materials, skills for repeatable methods, and MCP to access external systems; do not replace clear tasks with expanded permissions.</p></figcaption></figure>

## Knowledge base search and management

| Capability                | What it can do                                   | Applicable tasks                       | Default recommendation                            |
| ------------------------- | ------------------------------------------------ | -------------------------------------- | ------------------------------------------------- |
| Knowledge base search     | Search, list, and read bound knowledge bases     | Q\&A, research, summaries, comparisons | Keep enabled                                      |
| Knowledge base management | Add, delete, or refresh knowledge base documents | Approved material maintenance          | Disabled by default, enable temporarily as needed |

{% hint style="warning" %}
Binding a knowledge base only grants access scope; it does not create another copy of the knowledge base. After materials are updated or reindexed, the Agent will use the updated content the next time it searches.
{% endhint %}

{% hint style="danger" %}
After enabling \[Knowledge Base Management], add, delete, and refresh operations will change the materials or the index. Before approval, confirm the target knowledge base, the specific entries, how same-name conflicts are handled, and the rollback plan.
{% endhint %}

## How the Agent's configuration works together

<figure><img src="/files/292b5ee745cdde007a6d0f2e66377958134a094a" alt="模型分工、可用能力和安全边界共同作用于 Agent 任务与交付结果的架构图"><figcaption><p>The model determines understanding and generation, the knowledge base provides evidence, and permissions determine how far the Agent can act.</p></figcaption></figure>

## Recommended task templates

### Research and generate a report

> Find all rules about overseas business-trip approval and insurance in the bound knowledge bases. List the sources and conflict points first, then generate a Markdown checklist. Do not fill in anything that is not supported by the materials.

### Update FAQ

> Search the existing entries for accommodation reimbursement, and compare the latest policy with the old FAQ. First provide a list of proposed changes; refresh the relevant documents after approval.

### Cross-knowledge-base comparison

> Find evidence separately from the "Product Manual" and "After-sales Cases" knowledge bases, organized into three columns: "Official Rules / Real Cases / Suggested Wording." Keep the source name for each conclusion.

## Configuration notes

| Configuration item        | Recommended starting point                           | When to add more                                         | Risk control                                                   |
| ------------------------- | ---------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------- |
| Bind knowledge bases      | 1 task-related knowledge base                        | There is a real need for cross-knowledge-base comparison | Clearly state the purpose of each knowledge base in the prompt |
| Knowledge base search     | Enable                                               | As long as the task requires looking up materials        | Verify whether the sources come from the bound scope           |
| Knowledge base management | Disable                                              | Clearly need to add, delete, or refresh                  | Approve item by item, and back up important materials first    |
| Output requirements       | Facts, inferences, and recommendations are separated | Need to generate a report or file                        | Keep the source name for each fact                             |

## User case

Xiaolin bound the \[Official Manual] and \[Review Cases] to the after-sales Agent, and enabled only knowledge base search. He asked the Agent to list safety warnings, official steps, and case suggestions by device model, and keep the three separate. When he found that old cases needed updating, he temporarily enabled the management tool, first reviewed the list of changes to be made, and then approved them.

The completion criteria are: the Agent does not access unbound materials, does not write case suggestions as official rules, and all write operations have clear targets and acceptance results.

## Acceptance of results

* Sources come only from the knowledge bases bound to the current Agent.
* The search results cover every condition in the task.
* The deliverable separates material facts, Agent inferences, and recommendations.
* Management actions explain the target, impact, and result.
* After updating the materials, rerun the fixed retrieval questions.

## FAQ

<details>

<summary>Regular chat can find it, so why can't the Agent find it?</summary>

Check whether the target knowledge base is bound to the current Agent, and whether \[Knowledge Base Search] is enabled. The binding scope of different Agents is not inherited.

</details>

<details>

<summary>When should knowledge base management not be enabled?</summary>

For read-only research, shared team policy libraries, and historical archives, only search should be enabled by default. If updates are needed, temporarily enable management and approve items one by one.

</details>

<details>

<summary>What should the Agent do if it wants to operate on an unbound knowledge base?</summary>

Do not expand to all knowledge bases. After confirming the task really requires it, add the target knowledge base to the current Agent, or switch to an Agent that already has that knowledge base bound.

</details>

## Continue reading

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Use in conversation</strong></td><td>Complete an instant, source-backed Q&#x26;A.</td><td><a href="/pages/b797f738b8c03492018a83b57869ba2f43a00a62">/pages/b797f738b8c03492018a83b57869ba2f43a00a62</a></td></tr><tr><td><strong>Data, privacy, and maintenance</strong></td><td>Understand the boundaries of permissions, cloud services, and backups.</td><td><a href="/pages/79d7d1d4aa8046a5b156be2497b3f18795dd88a8">/pages/79d7d1d4aa8046a5b156be2497b3f18795dd88a8</a></td></tr><tr><td><strong>Knowledge base application examples</strong></td><td>Refer to after-sales and research workflows.</td><td><a href="/pages/f5585710b91e24d4206ea9a29da14da13f79dbe1">/pages/f5585710b91e24d4206ea9a29da14da13f79dbe1</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/en-us/knowledge-base/agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
