# 文書前処理

ナレッジベース文書の前処理には、Cherry Studio を v1.4.8 以上にアップグレードする必要があります。

### OCRサービス提供元を設定する

<figure><img src="/files/84c89b9463efc17873dff2980a8ae4ce54bd1757" alt=""><figcaption></figcaption></figure>

API KEYを取得するをクリックすると、ブラウザで申請先が開きます。今すぐ申請をクリックしてフォームを入力した後、API KEYを取得し、それをAPI KEY欄に入力してください。

<figure><img src="/files/9a1988d2e7538dcbe4dccf62addbc31a46eefd46" alt=""><figcaption></figcaption></figure>

### ナレッジベース文書の前処理を設定する

<figure><img src="/files/6537e256a9dc50c87e6e07f0a767da2cb176b78b" alt=""><figcaption></figcaption></figure>

作成済みのナレッジベースで上記の設定を行えば、ナレッジベース文書の前処理設定が完了します。

### 文書をアップロードする

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

> 右上の検索からナレッジベースの結果を確認できます

### 会話内で使用する

<figure><img src="/files/415de2139f04ea031593e74a18eef8e9a2a04dbe" alt=""><figcaption></figcaption></figure>

> ナレッジベースの使用Tips: **高性能な**モデルを使用する場合は、ナレッジベースの検索モードを意図認識に変更できます。意図認識では、あなたの質問をより正確かつ幅広く表現できます。

### ナレッジベースの意図認識を有効にする

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