> 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/more-settings/duplicate-document-handling.md).

# 重复检测

使用 **重复检测** 可根据选定字段，在指定时间范围内标记与其他文档匹配的文档。这些选项适用于各个文档类型。

## 打开设置

1. 打开 **设置 → 文档类型**。
2. 在要配置的文档类型上，选择 **设置**。
3. 在 **更多设置**中，打开 **重复检测**。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-6d588b045ebf78a6ef314382716b490a3a512239%2Fdbdc156-duplicate-settings-off-en.png?alt=media" alt="发票的更多设置，其中已展开重复检测部分，且检测选项均已关闭"><figcaption><p>发票设置中显示了四个独立开关。启用检测后，会显示字段和时间间隔选择器。</p></figcaption></figure>

## 选择重复项的判定条件

1. 开启 **重复文档检测**。此时会显示 **重复检测字段**和 **重复检测时间间隔**选择器。
2. 选择必须匹配的字段。对于发票，可以选择 **供应商 ID**和 **发票号码**。请选择适合您自身流程、能够区分文档的字段。
3. 选择时间间隔：**1 个月**、**3 个月（推荐）**、**6 个月**或 **1 年**。时间间隔越长，检查的日期范围越大，加载时间也可能越长。

每次更改都会立即保存；此部分没有单独的“保存”按钮。如果关闭检测，字段和时间间隔选择器将隐藏。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-e942e57d998182cba4b08e47e32593e148db63c1%2Fdbdc156-duplicate-settings-on-en.png?alt=media" alt="已启用重复文档检测，并显示字段和时间间隔选择器"><figcaption><p>请先启用检测，再选择比较字段和时间间隔。</p></figcaption></figure>

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-d2bd4f397b36ad2c86644a53fe84f13973996168%2Fdbdc156-duplicate-interval-options-en.png?alt=media" alt="重复检测时间间隔菜单，包含一个月、三个月、六个月和一年"><figcaption><p>菜单中将三个月标记为推荐时间间隔。</p></figcaption></figure>

对于 **发票**，此部分还提供 **重复发票检测**、**阻止重复文档导出**和 **忽略免税行**。这些是独立开关；请仅启用发票流程所需的行为。其他文档类型不会显示这些额外开关。

## 查看已标记的文档

当 DocBits 找到匹配项时，**仪表板**上的文档行会显示重复项图标。选择该图标，即可在侧边面板中比较匹配的记录。只有存在匹配项时才会显示此图标。

打开已标记的文档时，重复项警告会提供 **查看重复项**、**仍然继续**，以及（如果文档尚未归档）**归档**选项。选择操作前，请先查看匹配的记录。有关文档列表，请参阅[仪表板指南](/chinese/guan-li-yu-she-zhi/settings/global-settings/dashboard.md)。


---

# 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/more-settings/duplicate-document-handling.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.
