> 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/zhong-wen-fan-ti/cherry-studio/preview/knowledge-base.md).

# 知識庫

知識庫就好似畀 AI 配一本 **專屬參考書**：你將自己嘅文件、筆記、網址擺入去，之後傾偈嗰陣叫 AI 翻呢本書嚟答你嘅問題。

<figure><img src="/files/fbf47e5187a0a7531aafb1932c358ae33607c6b4" alt=""><figcaption><p>知識庫：左邊欄係已建立知識庫列表（頂部 <code>+ 新建知識庫</code>），右邊向揀中嘅知識庫加入文件／筆記／目錄／連結資料源</p></figcaption></figure>

## 用知識庫可以做啲咩？

舉幾個真實場景：

* **公司知識助手**：將產品手冊、API 文檔、內部規範全部擺入去，員工問問題嗰陣 AI 自動答
* **個人資料管家**：將你歷年嘅工作筆記、讀書摘錄、電郵存檔放入去，問 AI「我舊年喺邊個 PPT 入面提過嗰個分析框架」
* **學習陪練**：將課件、論文擺入去，等 AI 幫你按章節出題、解答疑惑
* **合同／法規速查**：將法條、合同模板擺入去，問 AI 具體條款嘅應用

## 點解用知識庫，唔直接將文件丟畀 AI？

直接丟文件嘅限制：

* 每次提問都要重新上載，麻煩
* 單次對話有長度限制，長文檔塞唔落
* 跨對話唔可以重用

**知識庫解決咗上面所有問題**：上載一次，之後任何對話都可以調用，仲可以由大量資料入面「精準攞出相關段落」餵畀 AI。

## 點樣用？

* 第一次用：睇 [完整知識庫教程](/docs/zhong-wen-fan-ti/knowledge-base/knowledge-base.md)
* 想加圖片／掃描 PDF：先睇 [文檔預處理](/docs/zhong-wen-fan-ti/knowledge-base/document-preprocessing.md)，等 AI 可以「睇明」圖片入面嘅文字
* 想了解嵌入模型點揀：睇 [嵌入模型參考](/docs/zhong-wen-fan-ti/knowledge-base/emb-models-info.md)
* 想離線用、唔配雲端嵌入：可以用內置嘅 [本地嵌入模型](/docs/zhong-wen-fan-ti/pre-basic/settings/local-models.md)，知識庫無需連網都可以建立索引同檢索
* 想了解資料存喺邊：睇 [知識庫資料](/docs/zhong-wen-fan-ti/knowledge-base/data.md)

## 與其他能力嘅組合

* **知識庫 + 助手**：幫某個助手「掛載」知識庫，佢就會專精呢個領域
* **知識庫 +** [**智能體**](/docs/zhong-wen-fan-ti/cherry-studio/preview/agent.md)：等智能體喺任務過程自己查知識庫
* **知識庫 +** [**頻道**](/docs/zhong-wen-fan-ti/advanced-basic/automation/channels.md)：將「識查公司文檔」嘅智能體派去飛書群入面值班

{% hint style="info" %}
建議先睇 [進階能力地圖](/docs/zhong-wen-fan-ti/advanced-basic/capability-map.md)，了解知識庫同智能體、MCP、頻道等功能點樣協同。
{% endhint %}

***

### 攞幫助同提交意見

如果您喺配置或使用過程中遇到任何疑問、Bug 或有功能改善建議，請參考 [反饋與建議](/docs/zhong-wen-fan-ti/question-contact/suggestions.md) 入面提供嘅官方渠道。


---

# 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/zhong-wen-fan-ti/cherry-studio/preview/knowledge-base.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.
