# 文檔預處理

知識庫文件預處理 需要將 Cherry Studio 升級去 v1.4.8 或更高版本。

### 配置 OCR 服務商

<figure><img src="/files/3bbdf3713d7f858e6786325856968743f3820b0d" alt=""><figcaption></figcaption></figure>

撳「獲取 API KEY」之後會喺瀏覽器打開申請地址，撳「立即申請」填寫表單後獲取 API KEY，並將佢填入 API KEY 入面。

<figure><img src="/files/24c080abfed80363793e87cde495d991e8a006f5" alt=""><figcaption></figcaption></figure>

### 配置知識庫文件預處理

<figure><img src="/files/4c28e2e87977fbc6ad7cdede3766f0ff68e22e55" alt=""><figcaption></figcaption></figure>

喺已經建立好嘅知識庫入面進行上述配置，就可以完成知識庫文件預處理配置。

### 上載文件

<figure><img src="/files/38aa796403014131abdf5595978344748f397b1f" alt=""><figcaption></figcaption></figure>

> 可以透過右上角搜尋對知識庫結果檢測

### 喺對話中使用

<figure><img src="/files/4678cfdc68aa168d841cc7e10fc71dbe8dfe60fa" alt=""><figcaption></figcaption></figure>

> 知識庫使用 Tips: 使用**能力較強**嘅模型時可以將知識庫搜尋模式修改為意圖識別，意圖識別可以更準確、更加廣泛咁描述您嘅問題。

### 開啟知識庫意圖識別

<figure><img src="/files/d847195844d49fea78baf7c3e8c5517a9ac32cb6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.cherry-ai.com/docs/zhong-wen-fan-ti/knowledge-base/document-preprocessing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
