> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-site/ai-search.md).

# AI 検索

公開済みコンテンツ向けの強力なナレッジ探索ツールで、ユーザーが必要な情報をよりすばやく見つけられるようにしましょう

### サイトの検索体験を選択する

GitBook サイトでは、ユーザーに提供したい内容に応じて、さまざまな検索体験を利用できます：

* **キーワード検索** – キーワードに基づく標準的な検索体験です。すべてのサイトで自動的に有効になります。
* **GitBook AI 検索** – ユーザーは検索ボックスから直接、質問に対する短い回答を得られます。Premium および Ultimate のサイトプランで利用できます。
* **GitBook Assistant** – ユーザーは GitBook の AI エージェントによる高度で対話的なチャット体験を利用できます。Ultimate のサイトプランで利用できます。 [GitBook Assistant](/docs/documentation/ja-gitbook-documentation/ai-to/gitbook-ai-assistant.md) 詳細はこちら。

AI 検索は Premium および Ultimate のサイトプランで利用できます。GitBook Assistant は Ultimate のサイトプランで利用できます。

サイトの検索体験を選択するには、 **カスタマイズ**、の **ツール** をサイトのサイドバーで開き、 **AI アシスタント**を開いてください。ここで希望する体験を選択できます。

<figure><img src="/files/482fe572a2a3269102697da592f9800a8524c4ce" alt=""><figcaption><p>公開済みドキュメントで使用する検索体験を選択してください</p></figcaption></figure>

{% hint style="warning" %}
GitBook Assistant が有効な場合、AI 検索は無効になります。どの体験を選んでも、標準のキーワード検索では常に検索バーに結果が表示されます。
{% endhint %}

## 公開済みドキュメントを検索する

**​**ユーザーは **質問または検索…** バーを開くには <kbd>⌘</kbd> + <kbd>K</kbd> （Mac の場合）または <kbd>Ctrl</kbd> + <kbd>K</kbd> を PC で押します。

ユーザーはドキュメントサイト内でキーワードを検索し、サイト全体の特定のページやページ内セクションへすばやく移動できます。

ドキュメントサイトに複数の [セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/site-sections.md)セクションがある場合、検索結果にはこれらすべてのセクションのページが含まれるため、ユーザーは必要なページへ直接移動できます。

## GitBook AI 検索

{% hint style="info" %}
この機能は～で利用できます [プレミアムおよびアルティメットのサイトプラン](https://www.gitbook.com/pricing).
{% endhint %}

GitBook AI 検索では、 **検索して見つける…** サイトのバーで基本的な AI 搭載の回答を提供します。ドキュメントサイトのコンテンツをもとに学習していますが、外部ソースから情報を取得することはできません。

### GitBook AI 検索を使用する

サイトの設定ページで GitBook AI 検索を有効にしている場合、ユーザーは **質問または検索…** ページ上部のバーで直接質問することで利用できます。

これは直接クリックするか、 <kbd>⌘</kbd> + <kbd>K</kbd> Mac では <kbd>Ctrl</kbd> + <kbd>K</kbd> 、PC では

要約された回答に加えて、その下には GitBook AI が回答作成に使用したソースを表示する展開可能なセクションと、フォローアップとしてクリックできる関連質問も表示されます。

{% hint style="warning" %}
GitBook AI は、異なる [ドキュメントサイト上の個別の公開セクションでは機能しません](/docs/documentation/ja-gitbook-documentation/docs-site/publish-a-docs-site.md).

複数セクションの検索は、公開済みの [セクション](/docs/documentation/ja-gitbook-documentation/docs-site/site-structure/site-sections.md) が同じサイト内にある場合にのみ利用できます。
{% endhint %}

* 押す <kbd>⌘</kbd> + <kbd>I</kbd> （Mac の場合）または <kbd>Ctrl</kbd> + <kbd>I</kbd> （PC の場合）
* をクリックする **GitBook Assistant** ![](/files/ad2de5ee4a387c893e0b483fa46ca02f60c7f628) ボタンの隣にある **質問または検索…** バー
* に質問を入力し、メニュー上部の「質問する…」オプションを選択する **質問または検索…** バーを開き、メニュー上部の「質問する…」オプションを選択してください。


---

# 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://gitbook.com/docs/documentation/ja-gitbook-documentation/docs-site/ai-search.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.
