# ナレッジベースの作成

## ナレッジベース作成手順

### ナレッジ画面を開く

![](/files/mvLJVKd2HWW0ko6Yw4V6)

1. ダッシュボード上側のメニューから\*\*「ナレッジ」\*\*をクリックします。
2. ナレッジベース一覧画面が表示されます。

### 新規作成

画面にある **「ナレッジベースを作成」** ボタンをクリックします。

### データソースの選択

![](/files/lHYplebgSuu8rGwjILIb)

データソースを取得する方法を選択します。 ファイルやURLを使わず空の状態で作成する場合は、画面下部の「**空のナレッジベースを作成します**」をクリックしてください。

| 取得方法                | 説明              | Dify公式ドキュメント                                                                                     |
| ------------------- | --------------- | ------------------------------------------------------------------------------------------------ |
| **テキストファイルからインポート** | PCからファイルをアップロード | <https://docs.dify.ai/ja/use-dify/knowledge/create-knowledge/import-text-data/readme>            |
| **Notionから同期**      | Notionページを同期    | <https://docs.dify.ai/ja/use-dify/knowledge/create-knowledge/import-text-data/sync-from-notion>  |
| **ウェブサイトから同期**      | ウェブサイトをクロール     | <https://docs.dify.ai/ja/use-dify/knowledge/create-knowledge/import-text-data/sync-from-website> |

### 対応ファイル形式

| 形式             | 拡張子                                              | 用途          |
| -------------- | ------------------------------------------------ | ----------- |
| **テキスト**       | .txt, .md, .markdown                             | シンプルな文書     |
| **PDF**        | .pdf                                             | マニュアル、レポート  |
| **Word**       | .doc, .docx                                      | ビジネス文書      |
| **Excel**      | .xls, .xlsx                                      | 表形式データ      |
| **CSV**        | .csv                                             | データリスト      |
| **HTML**       | .html, .htm                                      | Webコンテンツ    |
| **PowerPoint** | .ppt, .pptx                                      | プレゼンテーション資料 |
| **その他**        | .xml, .msg, .eml, .properties, .epub, .vtt, .mdx | 各種ドキュメント    |

### ナレッジベースの命名規則

わかりやすい命名規則を採用しましょう。

{% hint style="info" %}
良い例:

* 「製品カタログ\_2024」\\
* 「FAQ\_カスタマーサポート」\\
* 「対応マニュアル\_v2」
  {% endhint %}

{% hint style="danger" %}
悪い例:

* 「ナレッジベース1」\\
* 「新しいナレッジ」\\
* 「テスト」
  {% endhint %}

### デジタルヒューマン用ナレッジ例

| ナレッジベース名      | 内容             |
| ------------- | -------------- |
| **製品情報**      | 製品カタログ、価格表、仕様書 |
| **FAQ**       | よくある質問と回答      |
| **会社情報**      | 会社概要、アクセス、営業時間 |
| **サポートマニュアル** | 問い合わせ対応手順      |

### 作成後の確認事項

作成操作の後、以下の項目を確認してください。

1. **一覧表示**: 対象のナレッジベースが一覧に表示されるか。
2. **ステータス遷移**: ステータスが「処理中」から「完了」になるか。
3. **件数確認**: ドキュメント数が正しくカウントされているか。


---

# 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.digitalhumans.jp/dify-guide/knowledge-base/dify-docs-create-knowledge-base.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.
