> For the complete documentation index, see [llms.txt](https://docs.cherry-ai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherry-ai.com/docs/zhong-wen-fan-ti/cherry-studio/preview/knowledge-base.md).

# 知識庫

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

<figure><img src="/files/3a81d5c3749b6b28b4eeaa3e7d87f01eb2ae38c0" 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/knowledge-base/data.md)

## 與其他能力嘅組合

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

> 建議先閱讀 [概念入門](/docs/zhong-wen-fan-ti/advanced-basic/concepts-101.md) 了解知識庫同 Agent / MCP 等功能之間嘅關係。

***

### 💡 獲取幫助同提交反饋

如果你喺配置或者使用過程中遇到任何疑問、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.cherry-ai.com/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.
