> 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/zh/chuang-jian-nei-rong/searching-your-content/gitbook-ai.md).

# GitBook AI

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

{% hint style="info" %}
GitBook AI 搜索既可在 GitBook 应用中用于搜索内部内容，也可 [在已发布内容中搜索该特定文档站点](/docs/documentation/zh/wei-du-zhe-ti-gong-ai-gong-neng/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 会花几秒钟扫描您的文档并汇总结果。

### FAQ

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

当有人对您的内容进行更改——例如合并的 [变更请求](/docs/documentation/zh/xie-zuo/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
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/zh/chuang-jian-nei-rong/searching-your-content/gitbook-ai.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.
