UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Document Understanding 活动

上次更新日期 2026年4月22日

生成式分类器 - 良好做法

生成式分类器允许您使用生成模型对文档进行分类。 您可以在此页面中找到有关如何使用生成式分类器充分利用工作流的提示和技巧。

对大量文档进行分类

假设您有大量合同,需要将其归入不同类别。 要使用生成式分类器优化此流程,请遵循本页中列出的良好做法。

优化输入提示

To optimize your input prompts, provide as much context as possible. Provide a detailed description of each document type. For instance, the following text can be considered while classifying an invoice: “An invoice is a document issued by a seller to a buyer, detailing products or services provided, their quantities, and prices. It includes the seller's and buyer's details, invoice number, date, total amount due, and payment terms. Invoices are used for requesting payments and record-keeping in business transactions”

为了使生成式模型有效运行,有必要提供广泛的上下文,而不是提供简短而模糊的文档式描述,这可能会导致明显的错误。

优化工作流

要优化工作流,请首先创建一个文件夹来移动已分类的文件,以避免冗余分类。

Create a sample set of documents before automating a larger data set. This sample set should include corrupted and password-protected PDFs to test the workflow. As a good practice, include a Try Catch actvity in the workflow to prevent failures that might occur due to corrupted or password-protected PDF files. Once the Try Catch activity is in place, the workflow can be tested on the sample set to ensure its effectiveness.

在工作流中,缓存数字化结果(文档文本和文档对象模型)可在对同一个文件进行多次测试时节省时间。

  • 对大量文档进行分类
  • 优化输入提示
  • 优化工作流

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新