> 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 帮助你更快地在组织内部找到所需知识

当使用 GitBook AI 时，你可以提出问题或详细说明具体需求。这个由 AI 驱动的工具旨在实时审阅你的文档，为你提供快速、直接的答案。

{% hint style="info" %}
GitBook AI 搜索既可在 GitBook 应用内用于搜索内部内容，也可 [在已发布内容中搜索该特定文档站点](/docs/documentation/zh/mian-xiang-du-zhe-de-ai/gitbook-ai-assistant.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="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FPnAIpi7l7NOqFoTvAx11%2Fquick-find.svg?alt=media&amp;token=7b2c5f2d-04d7-44de-9751-3a985679c2a1" alt=""></picture> 从左侧边栏中的菜单，并直接输入问题。GitBook AI 会花几秒钟扫描你的文档并总结结果。

### 常见问题

#### 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.
