> 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-line-fields-table-training.md).

# 训练行字段/表格训练

## 表格训练：何时以及如何使用

DocBits 默认使用基于 AI 的表格提取功能，该功能适用于不同供应商。不过，如果您需要更好地控制某个特定供应商的行项目提取方式，可以使用**表格训练**手动定义表格结构。

#### **重要：供应商专属训练**

表格训练**针对每个供应商单独设置**。如果您为某个供应商训练了表格布局，这些规则仅适用于该供应商的文档。\
其他供应商仍会使用基于 AI 的表格提取功能，除非您也为他们单独进行训练。

#### 何时使用表格训练？

**仅在文档布局稳定**且您希望确保提取结果一致、质量上乘时，才使用表格训练。它最适合以下供应商：

* 长期使用**固定的发票格式**。
* 需要将行项目**精准映射**到特定字段。
* 属于**高业务量供应商**，一致的自动化处理能带来价值。

#### 何时不应使用表格训练

出现以下情况时，请避免使用表格训练：

* 供应商**经常更改发票布局**（例如，每隔几个月就更改一次）。
* 您不经常收到该供应商的文档。
* 默认 AI 提取效果已经**足够好**，无需手动训练。

在这些情况下，反复重新训练表格会效率低下且耗费时间。

## 如何使用：

**训练模式**用于教会 DocBits 如何从特定供应商的文档布局中正确提取行项目。

在训练模式下，您需要定义：

* **表格在文档中的位置**。
* **各区域对应的列**（例如，数量、描述、单价）。

此模式会为该供应商创建一个**可重复使用的提取模板**，因此，后续具有相同布局的文档会自动处理，无需重新训练。

**主要特征：**

* **已映射的列为只读**——您无法手动更改其中的文本。
* 您**无法添加或删除行**。
* 重点在于**映射位置**，而不是更正数值。
* 完成表格及其列的映射后，点击\*\*“Save Rules”\*\*，让 DocBits 学习并将此训练应用于该供应商的类似文档。

**更正模式**用于更正当前文档表格数据中的**提取错误**。当 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-line-fields-table-training.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.
