> 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.md).

# 搜索内部内容

使用关键词搜索和 AI 驱动的智能搜索，更快找到你要找的内容

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-4339e24f000b14fb91fbf33a61ac07624513adb6%2F25_12_10_searching_internal_content%402x.png?alt=media" alt="A GitBook screenshot showing the search bar"><figcaption><p>使用内置搜索栏提问或搜索你的内容。</p></figcaption></figure>

无论你是在 GitBook 应用中工作，还是访客在阅读你已发布的内容，GitBook 的搜索功能都能帮助他们轻松找到所需内容。

你可以使用快速查找来搜索特定的单词或短语，也可以向 GitBook AI 提问。它会扫描你的文档，并在几秒内总结出答案，还会附上参考资料，帮助你进一步了解更多内容。

{% hint style="success" %}
**全局搜索**

如果您的网站有多个版块，访客可以使用 **提问或搜索** 栏查找所有版块中的信息。
{% endhint %}


---

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