> 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 应用中用于搜索内部内容，也可 [在已发布的内容中用于搜索相应的文档站点](https://gitbook.com/docs/documentation/zh/ai-for-your-readers/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="broken://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%2Fgit-blob-d432fb3ac184a7af20aaa7b873c737a035c3a077%2F25_07_16_quick_find.svg?alt=media" alt=""></picture> 菜单（位于左侧边栏），然后输入问题。GitBook AI 需要几秒钟扫描文档并汇总结果。

### 常见问题

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

有人更改内容时（例如合并了一个 [变更请求](https://gitbook.com/docs/documentation/zh/collaborate/change-requests.md) ），GitBook 可能需要 **最多一小时** 才能为更改建立索引，并在 AI 搜索结果中显示这些更改。

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

我们会将您的内容传递给 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/zh/chuang-jian-nei-rong/searching-your-content/gitbook-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
