# GitBook AI

使用 GitBook AI 时，你可以提问或对具体需求进行补充说明。这款由 AI 驱动的工具旨在实时审阅你的文档，为你提供快速、直接的答案。

{% hint style="info" %}
GitBook AI 搜索既可在 GitBook 应用内使用，用于搜索内部内容，也可用于 [已发布内容中搜索该特定文档站点](/docs/documentation/zh/docs-site/ai-search.md).
{% endhint %}

## GitBook AI 可帮助你在 GitBook 应用中查找答案

你可以为组织的内部内容启用 GitBook AI，从而能够就你的内部知识库提问并获得语义化答案。

前往 **组织设置** 页面，并在 **常规** 选项卡中，将 **启用 GitBook AI** 设置打开。

### 使用 GitBook AI 搜索 <a href="#how-do-i-use-gitbook-ai" id="how-do-i-use-gitbook-ai"></a>

启用 GitBook AI 后，打开左侧边栏中的 **提问或搜索** <picture><source srcset="/files/zQV3twxlViZn2AoK3a7F" media="(prefers-color-scheme: dark)"><img src="/files/3536328c941efbb55703dbcb24a943e068fe6b28" alt=""></picture> 菜单，只需输入一个问题即可。GitBook AI 会花几秒钟扫描你的文档并汇总结果。

### 常见问题

#### GitBook AI 索引更改需要多长时间？

当有人对你的内容进行更改时——例如合并了一个 [更改请求](/docs/documentation/zh/collaboration/change-requests.md) ——GitBook 可能需要 **最多一小时** 来索引这些更改，并将其反映在 AI 搜索结果中。

#### GitBook AI 如何处理我的数据？

我们会将你的内容传递给 OpenAI 以对数据进行索引和处理。OpenAI **不会** 将这些内容用于服务改进（包括模型训练）。你可以进一步了解 OpenAI 如何处理数据 [这里](https://openai.com/blog/introducing-chatgpt-and-whisper-apis#developer-focus).

#### 如何防止 GitBook AI 搜索产生幻觉？

如果你发现 GitBook 给出的答案不正确，纠正这一问题的最佳方法是在相关主题周围写明确的内容，这样 AI 就不需要猜测。


---

# 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://gitbook.com/docs/documentation/zh/creating-content/searching-your-content/gitbook-ai.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.
