Amazon Textract Insights 发布:文档可验证生成式 AI

金融服务、保险、医疗健康以及公共部门等各类组织都依赖文档处理。它们把扫描文件和纸质表单转化为系统能够据以行动的结构化数据。随着生成式 AI 日趋成熟,这些组织想要的不再只是准确的文本提取。它们希望用自己的语言描述所需信息,并从复杂文档中获得可靠、可审计的答案。
今天,我们宣布 Amazon Textract Insights 正式可用。这是 Amazon Textract 的一项全新生成式 AI 功能,通过 Amazon Textract 内部的一个新 API 提供。借助 Amazon Textract Insights,你可以用自然语言描述所需的字段,并提交一份文档或一个混合的多文档文件包。你会收到结构化结果,其中每个值都带有置信度分数和页面级溯源信息,且无需进行任何模型训练。
许多高价值的文档工作负载涉及的是多样化的混合文件包,而非干净、单一用途的文件。以抵押贷款文件为例,它通常以一份扫描件的形式到达,其中包含 W-2 表格、工资单、银行对账单以及一页手写笔记。每份材料都有自己的版式,且出现顺序不固定。理赔文件和入职材料包也可能看起来非常相似:打印表单、密集表格、扫描收据和自由文本信函交织在同一份文件中。
团队通常采用两种做法之一,而两者各有取舍。第一种是自定义流水线,把光学字符识别(OCR)、文档拆分、分类、基础模型提示词以及复核环节组合在一起。团队必须自行集成、扩展并运维所有这些环节。第二种是默认使用通用大语言模型。它能给出流畅的答案,但无法可靠地标注来源页面,也不会给出置信度分数。没有可追溯的来源和经过校准的分数,就很难判断哪些数值可以自动接受、哪些需要人工复核。这种不确定性往往限制了团队能实现自动化的程度。
Amazon Textract Insights 专为可靠的文档处理而打造,把这一整套工作流整合进 Amazon Textract 上的单次异步请求。你的团队无需自行组装和运维自定义流水线,而是通过一个托管 API 完成工作,直接拿到所需的数据。
使用 Amazon Textract Insights,你在蓝图中定义要提取的内容。蓝图是一份 JSON Schema,其中每个字段都带有一段自然语言描述,说明要查找什么。每个字段还有一个推断类型,用来决定该值是逐字从页面上读取,还是根据文档内容推断得出。你可以从 AWS 公共蓝图入手,用于常见的文档类型,例如 W-2、Form 1040、Form 1098、护照或出生证明。你也可以针对自己业务特有的文档自行编写蓝图。
对于混合文档包,你将预期会出现的每种文档类型的蓝图添加到同一个项目中。然后,你从自己的 Amazon Simple Storage Service (Amazon S3) 存储桶提交一个最多 3,000 页的单个文件,并启用拆分。Amazon Textract Insights 会将该文档包拆分为逻辑子文档,将每个子文档匹配到适合它的蓝图,提取所需字段,并为每个值返回置信度分数和溯源信息。
例如,假设你收到一份抵押贷款申请,是一个 26 页的单个 PDF,其中包含 W-2、工资单、银行对账单以及贷款专员的手写笔记。你创建一个 Amazon Textract Insights 项目,使用 AWS 公开的 W-2、工资单和银行对账单蓝图,为贷款专员笔记添加自定义蓝图,并启用拆分。然后,你通过一次 StartDocumentInsights 调用从自己的 Amazon S3 存储桶提交该文件。Amazon Textract Insights 会将该文件拆分为各个独立文档,将每个文档匹配到其蓝图,并将结果写入你的 S3 存储桶。每个值都包含置信度分数,以及它提取自的页码和边界框。
Amazon Textract Insights 会返回两类字段:第一类是直接从页面上读取的显式字段。第二类是根据文档内容推导出的推断字段。两者都会返回置信度分数和溯源信息,该信息标明该值来源的页码和坐标。
由于每个值都可追溯到其来源,审核人员或审计人员可以对照原始文档确认任何结果。你可以将自动化扩展到以前需要人工审核的文档,同时在需要判断的环节保留人工参与。
“我们评估了 Amazon Textract Insights,并对其潜力感到兴奋。我们的医疗账单和表单来自各种各样的来源,版式和格式往往各不相同。因此,为某一个来源开发的提取规则并不总能有效地迁移到另一个来源。
借助 Amazon Textract Insights,我们可以用自然语言描述所需的字段,该服务会识别并提取相应的数据。每个提取出的值都会附带一个置信度分数,让我们团队只需把审核精力集中在服务置信度较低的字段上。我们也期待探索文档拆分功能,它可以帮助自动把多文档文件拆分为单个文档,进一步简化我们的文档处理工作流。”
— Vijay Agrawal,Symbeo(A CorVel Company)信息系统副总裁
我们更新了 Amazon Textract 的读取引擎 Amazon Textract Core,提升了准确率,加强了对密集表格和手写内容的处理能力,并将 DetectDocumentText 和 AnalyzeDocument API 的语言覆盖范围扩展至 40 种语言。Amazon Textract 客户现在无需做任何更改即可享受这些改进。您的 Amazon Textract API 保持不变。
Amazon Textract Core 现已在另外两个 AWS 区域正式可用,即亚太地区(东京)和欧洲(苏黎世),使区域内处理覆盖的 AWS 区域总数达到 18 个。Amazon Textract Insights 在这些 AWS 区域尚不可用。
Amazon Textract Insights 使用 AWS 自有密钥对静态存储的项目和蓝图进行加密。如需使用您自己的 AWS Key Management Service(AWS KMS)客户托管密钥,请在调用 CreateProject 或 CreateBlueprint 时于 EncryptionConfiguration 中指定该密钥。
Amazon Textract Insights 会从你在 StartDocumentInsights 请求中指定的 Amazon S3 存储桶读取文档,并将结果写入这些存储桶。作业的中间数据在静态存储时使用 AWS 自有密钥加密。如果你在请求的 EncryptionConfiguration 中指定了客户托管密钥,Amazon Textract Insights 会使用它来加密该作业的中间数据。所有中间数据都是临时的,作业完成后即被删除。作业完成时写入你的存储桶的结果,适用输出存储桶的默认加密设置。项目的密钥不适用于其下的作业。
如果你禁用自己的密钥,或移除 Amazon Textract 对该密钥的访问权限,Amazon Textract Insights 将无法再使用以其加密的数据。
Amazon Textract Insights 会在你所在的地理区域内自动选择最优的 AWS Region 来处理你的推理请求。这可最大化可用计算资源和模型可用性,并旨在提供一致的客户体验。所有数据都通过 Amazon 的安全网络加密传输。Amazon Textract Insights 会将你的推理请求安全地路由到请求发源地所属地理区域内的可用计算资源。例如,源自美国的推理请求会在美国境内处理。Amazon Textract Core APIs 保持不变,仍会在你调用的 AWS Region 处理请求。有关目标 AWS Region 的列表,请参阅 Amazon Textract 文档指南。
开始使用 Amazon Textract Insights 需要四个步骤。
明确你的需求:从 AWS 公开蓝图开始,或用自然语言描述你自己的字段。
创建项目:把你的蓝图添加进去。
提交文档:通过一次 API 调用,从你的 Amazon S3 存储桶中发送单个文档或混合文档包。
查看结果:接受达到置信度阈值的值,其余则转交人工审核。用你自己文档的代表性样本调整阈值。
Amazon Textract Insights 支持 PDF、PNG、JPEG 和 TIFF 输入,可处理英语、法语、德语、意大利语、葡萄牙语和西班牙语的文档。它按页计费,而非按 Token 计费,且无最低消费承诺。如需了解 Amazon Textract 各项服务的当前价格,请参阅 Amazon Textract 定价页面。
长期以来,智能文档处理一直迫使人们在“能自动化到什么程度”与“结果能审计到什么程度”之间做取舍。Amazon Textract Insights 缩小了这一取舍,让你的团队可以依据实证而非猜测来决定在哪里实现自动化。进一步了解如何上手 Amazon Textract Insights。
访问 Amazon Textract 产品页面。
原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Announcing Amazon Textract Insights: Verifiable generative AI for documents)
Organizations across financial services, insurance, healthcare, and the public sector depend on document processing. They turn scanned files and paper forms into structured data their systems can act on. As generative AI has matured, these organizations want more than accurate text extraction. They want to describe the information they need in their own words and get dependable, auditable answers from complex documents.
Today, we are announcing the general availability of Amazon Textract Insights, a new generative AI feature of Amazon Textract available through a new API within Amazon Textract. With Amazon Textract Insights, you describe the fields you want in natural language and submit a document or a mixed, multi-document packet. You receive structured results in which each value carries a confidence score and page-level grounding, with no model training required.
The challenge of extracting data from mixed packets
Many of the high-value document workloads involve diverse, mixed packets rather than clean, single-purpose files. A mortgage file, for example, typically arrives as a single scan holding a W-2, payslips, bank statements, and a page of handwritten notes. Each has its own layout and appears in no fixed order. Claims files and onboarding packages can look very similar: typed forms, dense tables, scanned receipts, and free-text letters interleaved in one file.
Teams usually take one of two approaches, and each has trade-offs. The first is a custom pipeline that combines optical character recognition, document splitting, classification, a foundation model prompt, and a review step. The team must integrate, scale, and operate all of it. The second is a general-purpose large language model used by default. It returns fluent answers but does not reliably cite the source page or give a confidence score. Without a traceable source and a calibrated score, it is hard to know which values to accept automatically and which to review. This uncertainty often limits how far teams can automate.
Amazon Textract Insights is built for reliable document processing, bringing this entire workflow into a single asynchronous request on Amazon Textract. Rather than assembling and operating a custom pipeline, your team works through one managed API and moves directly to the data it needs.
How Amazon Textract Insights works
With Amazon Textract Insights, you define what to extract in a blueprint. A blueprint is a JSON Schema in which each field carries a natural language description of what to find. Each field also has an inference type that determines whether the value is read verbatim from the page or inferred from the content of the document. You can begin with an AWS public blueprint for a common document type, such as a W-2, Form 1040, Form 1098, a passport, or a birth certificate. You can also author your own blueprint for the documents specific to your business.
For a mixed packet, you add the blueprints for each document type you expect to the same project. You then submit a single file of up to 3,000 pages from your own Amazon Simple Storage Service (Amazon S3) bucket and enable splitting. Amazon Textract Insights splits the packet into logical sub-documents, matches each one to the blueprint that fits it, extracts the requested fields, and returns a confidence score and grounding for each value.
For example, suppose you receive a mortgage application as a single 26-page PDF that contains a W-2, payslips, bank statements, and a loan officer’s handwritten notes. You create an Amazon Textract Insights project with the AWS public W-2, payslip, and bank statement blueprints, add a custom blueprint for loan officer notes, and enable splitting. You then submit the file from your Amazon S3 bucket with a single StartDocumentInsights call. Amazon Textract Insights splits the file into its individual documents, matches each one to its blueprint, and writes the results to your S3 bucket. Each value includes a confidence score and the page and bounding box it was drawn from.
Confidence and grounding for auditable automation
Amazon Textract Insights returns two kinds of fields: The first are explicit fields read directly from the page. The second are inferred fields derived from the document’s content. Both return with a confidence score and with grounding that identifies the page and the coordinates the value was drawn from.
Because each value is traceable to its source, a reviewer or an auditor can confirm any result against the original document. You can extend automation to documents that would previously have gone to manual review, while keeping people in the process wherever judgment is required.
“We evaluated Amazon Textract Insights and are excited about its potential. Our medical bills and forms are received from a wide variety of sources and often have different layouts and formats. As a result, extraction rules developed for one source do not always transfer effectively to another.
With Amazon Textract Insights, we can describe the fields we need in plain language, and the service identifies and extracts the corresponding data. Each extracted value is returned with a confidence score, allowing our team to focus their review efforts only on the fields where the service has lower confidence. We are also excited to explore the document splitting capabilities, which could help automatically separate multi-document files into individual documents and further streamline our document processing workflow.”
— Vijay Agrawal, Vice President, Information Systems, Symbeo, A CorVel Company
Built on the Amazon Textract engine
We updated Amazon Textract’s reading engine, Amazon Textract Core, improving accuracy, strengthening the handling of dense tables and handwriting, and expanding language coverage to 40 languages for the DetectDocumentText and AnalyzeDocument APIs. All these benefits are available to Amazon Textract customers today with no changes. Your Amazon Textract APIs remain unchanged.
Amazon Textract Core is now generally available in two additional AWS Regions, Asia Pacific (Tokyo) and Europe (Zurich), bringing in-region processing to a total of 18 AWS Regions. Amazon Textract Insights isn’t yet available in these AWS Regions.
Security and data handling
Projects and blueprints
Amazon Textract Insights encrypts projects and blueprints at rest with AWS owned keys. To use your own AWS Key Management Service (AWS KMS) customer managed key, specify it in EncryptionConfiguration when you call CreateProject or CreateBlueprint.
Insight analysis jobs
Amazon Textract Insights reads documents from, and writes results to, the Amazon S3 buckets specified in your StartDocumentInsights request. Intermediate job data is encrypted at rest with AWS owned keys. If you specify a customer managed key in the request’s EncryptionConfiguration, Amazon Textract Insights uses it to encrypt the job’s intermediate data. All intermediate data is transient and is deleted when the job completes. Your output bucket’s default encryption applies to the results written to your bucket when the job completes. A project’s key does not apply to its jobs.
If you disable your key or remove Amazon Textract’s access to it, Amazon Textract Insights can no longer use data encrypted under it.
Cross-Region inference
Amazon Textract Insights automatically selects the optimal AWS Region within your geography to process your inference requests. This maximizes available compute resources and model availability, and is designed to deliver a consistent customer experience. All data is transmitted encrypted across Amazon’s secure network. Amazon Textract Insights securely routes your inference requests to available compute resources within the geographic area where the request originated. For example, inference requests originating in the United States are processed within the United States. Amazon Textract Core APIs are unchanged and continue to process requests in the AWS Region you call. For the list of destination AWS Regions, see the Amazon Textract documentation guide.
Getting started
Getting started with Amazon Textract Insights takes four steps.
Define what you need: Start from an AWS public blueprint or describe your own fields in natural language.
Create a project: Add your blueprints to it.
Submit your documents: Send a single document or a mixed packet from your Amazon S3 bucket with one API call.
Review the results: Accept values that meet your confidence threshold and route the rest for review. Tune your threshold on a representative sample of your own documents.
Amazon Textract Insights supports PDF, PNG, JPEG, and TIFF inputs and processes documents in English, French, German, Italian, Portuguese, and Spanish. It is priced per page rather than per token, with no minimum commitment. For current rates across Amazon Textract, see the Amazon Textract pricing page.
Conclusion
Intelligent document processing has long forced a choice between how far you can automate and how well you can audit the result. Amazon Textract Insights narrows that trade-off so your team can decide where to automate based on evidence rather than guesswork. Learn more about getting started with Amazon Textract Insights.
Visit the Amazon Textract product page.
Follow the Amazon Textract Developer Guide to author a blueprint or start with an AWS blueprint.
Register for Accelerate intelligent document processing with Amazon Textract session at re:Invent.
About the authors
Keith Mascarenhas
Keith leads worldwide go-to-market strategy for generative AI at AWS, focused on intelligent document processing and computer vision across AWS AI services and Amazon Bedrock. Since joining AWS, he has worked across product management, solutions architecture and go-to-market, giving him a builder’s view of how AI delivers business value.
Sneha Choudhury
Sneha is a Principal Product Manager driving product strategy and roadmap for AWS’s Documents & Visual AI initiatives. She shapes how AI-powered products are built and delivered to AWS customers.
Niklas Breuer
Niklas is a Sr Product Manager on the AGI team, where he defines and delivers AI-driven information products for AWS. He works closely with customers, engineering, and science teams to shape how AWS AI services are built and brought to market.
Wrick Talukdar
Wrick is a Tech Lead focusing on generative AI at Amazon Web Services, driving innovation through multimodal AI, agentic solutions, and foundational models. He is also the author of the bestselling book “Building Agentic AI Systems” and “Generative AI Ethics, Privacy, and Security” for Large Language Models. He is a keynote speaker and often presents his innovations and solutions at leading global forums, including AWS re:Invent, ICCE, Global Consumer Technology conference, and major industry events such as World Technology Summit, CERAWeek and ADIPEC. In his free time, he enjoys writing and birding photography.
Malena Lopez-Sotelo
Malena is a Technical Product Marketing Manager, Specialized AI Services and Models. Malena helps customers understand and adopt AI services. She partners across teams to turn complex technology into clear stories and successful launches.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 AWS Machine Learning(Announcing Amazon Textract Insights: Verifiable generative AI for documents),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。