> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/setup/document-training/training-header-fields.md).

# 训练表头字段

上传文档后，您将进入验证界面。\
部分字段可能已自动填充，这要归功于 DocBits 的群体智能。不过，其他字段可能仍为空。这通常表示该文档类型尚未完成训练，因此 DocBits 还不知道应从哪里提取这些信息。

您可以手动标出正确的数据，帮助 DocBits 学习识别这些字段。\
\*\*请注意：\*\*如果某个字段仍为空，也可能只是因为上传的文档中没有相关信息。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-864b0dec41fd8bd82ac0353fe5872dd84e612a7c%2Fheader_field_training_0.png?alt=media" alt=""><figcaption></figcaption></figure>

### 训练字段：

1. 点击要训练的字段。
2. 然后执行以下任一操作：
   * 在文档中对相关数据**双击**，或
   * 使用光标在数据周围**绘制选框**。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-766cb3a4b96bb8a0a7e32cafe99acb8cb977b0a8%2Fheader_field_training_1.png?alt=media" alt=""><figcaption></figcaption></figure>

对所有必需字段重复此操作。\
填充完所有必要字段后，\*\*点击“Save Rules”（保存规则）\*\*以保存训练结果。这样，DocBits 就能学会如何在今后类似的文档中查找每项信息。

<div align="left"><figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-59030fc6deff8b0e0b40a4df5ac77b7e4934db42%2Fheader_field_training_2.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

保存后，您的文档即可导出；下次 DocBits 将自动提取已训练的字段。


---

# 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/setup/document-training/training-header-fields.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.
