> 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/settings/global-settings/document-types.md).

# 文档类型

{% embed url="<https://youtu.be/pFz_6tvNlU4>" %}
DocBits 文档类型说明：创建、配置并分配处理设置
{% endembed %}

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-ac3fa0b545bef6d6eaef444936382c081a5c99ca%2Fdocument_types.png?alt=media" alt="文档类型"><figcaption><p>文档类型页面</p></figcaption></figure>

## 概览

文档类型页面列出了 DocBits 识别和处理的所有文档类型。页面分为两个部分：

* **默认文档类型**：DocBits 提供的预配置类型（发票、贷项通知单、交货单、订单确认书、合同、ZUGFeRD 等）。这些类型不能删除。
* **自定义文档类型**：为满足特定业务需求而创建的类型。这些类型可以编辑和删除。

## 每种文档类型的控件

每张文档类型卡片都显示以下控件：

| 控件                 | 说明                          |
| ------------------ | --------------------------- |
| **Activate**       | 切换开关，用于启用或停用此文档类型的处理功能。     |
| **Extraction**     | 切换开关，用于启用或停用此类型的 AI 数据提取功能。 |
| **Settings**（齿轮图标） | 打开此文档类型的其他配置选项。             |

## 配置选项卡

每种文档类型下方都可以访问以下配置选项卡：

| 选项卡                    | 说明                                         |
| ---------------------- | ------------------------------------------ |
| **Labels**             | 管理此文档类型的显示标签和翻译。                           |
| **Edit layout**        | 修改文档在验证视图中的显示方式，包括字段位置。                    |
| **Document Sub Types** | 为此文档类型配置子类别（例如不同的发票格式）。                    |
| **Table columns**      | 自定义行项目表中显示的数据列。                            |
| **Fields**             | 管理从文档中提取的数据字段（添加、编辑或删除字段）。                 |
| **Model Training**     | 配置并训练用于识别和提取数据的 AI 模型。                     |
| **Regex**              | 设置用于基于模式提取数据的正则表达式。                        |
| **Scripts**            | 编写在文档处理期间运行的自定义处理脚本。                       |
| **E-Doc**              | 配置电子文档标准（XRechnung、ZUGFeRD、EDI、FatturaPA）。 |

## 自定义验证规则

打开一种文档类型并选择 **Custom Validation Rules**，即可管理该类型专属的验证规则。若要重复使用现有规则而无需重新创建，请参阅[复制自定义验证规则](/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types/duplicate-a-custom-validation-rule.md)。该指南介绍规则名称、规则键和确认控件。

## 创建自定义文档类型

1. 向下滚动到 **Custom Document Types** 部分。
2. 点击 **+ New**。
3. 输入新文档类型的名称。
4. 根据需要配置字段、布局和提取设置。

{% hint style="info" %}
详细设置说明请参阅[设置文档类型](/chinese/guan-li-yu-she-zhi/setup/document-types.md)。
{% 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/document-types.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.
