# 文档预处理

知识库文档预处理 需要将 Cherry Studio 升级至 v1.4.8 或更高版本。

### 配置OCR服务商

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

点击获取API KEY后会在浏览器打开申请地址，点击立即申请填写表单后获取API KEY，并将其填入API KEY中。

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

### 配置知识库文档预处理

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

在创建好的知识库中进行如上配置，即可完成知识库文档预处理配置。

### 上传文档

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

> 可以通过右上角搜索对知识库结果检测

### 在对话中使用

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

> 知识库使用Tips: 使用**能力较强**的模型时可以将知识库搜索模式修改为意图识别，意图识别可以更准确、广泛的描述您的问题。

### 开启知识库意图识别

<figure><img src="/files/HWawnI8ODW7MJsLNEhXq" 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/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.
