> 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/save-and-delete-rules.md).

# 保存和删除规则

完成表格的训练或更正后，保存规则非常重要，这样 DocBits 才能将其自动应用于来自同一供应商的后续文档。

### 保存规则

定义所有列并完成更正后：

1. 点击顶部的 **SAVE RULES** 按钮。
2. 规则计数器会显示已保存的提取规则数量。

这样，DocBits 下次遇到类似文档时，就会自动使用经过训练的布局。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-7ae429a9555bbb9e418ab3dfbe6bf7874087e555%2Fa-training-line-fields-table-training-save-and-delete-rules-save-rules-en-20261006.png?alt=media" alt="处于训练模式的表格提取界面，其中包含 Save、Save Rules 和 Delete Rules 按钮，规则计数器显示 3。"><figcaption><p>Save Rules 用于保存规则；计数器会显示现有规则的数量。</p></figcaption></figure>

### 删除规则

如果已保存的规则配置不正确，或者文档布局发生了重大变化，可以使用 **DELETE RULES** 按钮删除规则。

<mark style="color:red;">**警告**</mark>：删除规则会影响来自同一供应商且布局相同的所有文档。您需要**从头重新训练表格提取**。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-84af51182abb1862b623966fabf079b1079e4fa5%2Fa-training-line-fields-table-training-save-and-delete-rules-delete-rules-en-20261006.png?alt=media" alt="点击 Delete Rules 后显示的确认对话框。"><figcaption><p>删除规则前必须确认。</p></figcaption></figure>


---

# 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/save-and-delete-rules.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.
