作者梳理了一类小型抽取模型,其每个答案都能回溯到原文出处,因此适合充当智能体的校验器,在答案输出前逐条核对事实。
https://x.com/i/article/2124957464999186432
Extraction Models as Verifiers for Agents
Over the past couple of months, I've been closely tracking a new class of small extraction models. Unlike decision models, every answer they return points back to its source.
This is useful for any agent that has to prove where an answer came from.
It turns out extraction models serve as great verifiers for agents. This is extremely important for improving agent reliability.
An extraction model checks each claim against the source before the agent's answer goes out.
Nace just added this capability to Drex Max with Drex for Extraction.
You describe a field in plain words. Drex returns the exact text span with its character positions, or a box on the page image. Each answer comes with a confidence score.
Every text answer is an exact substring of the input, so you can check it.
The no-match result is something interesting to build around. On blank form fields, Drex Box returned "not on page" 98% of the time, against 18.8% for VGSE-32B.
On ExtractBench, a set of PDF form fields, Nace reports 84.1 for Drex Box, against 65.7 for Liquid d1.2-ultra and 64.1 for VGSE-32B.
A blank field should stay blank. If an agent invents a due date on an invoice, that wrong date flows into every step after it. In other words, the errors compound fast in your system.
On text, Nace reports an 81.5 average across six held-out datasets, against 73.9 for Perplexity Decider 1.3. The widest gap is on SQuAD 2.0, a set built around unanswerable questions, at 84.2 vs 70.0.
The bigger idea for me is pairing this with the Drex Max decision models.
Extraction finds where a fact is. A decision model picks what to do with it. Both return calibrated scores in a single forward pass, and Nace runs them on the same API key.
Decision models perfectly complement extraction models. Combining both opens up opportunities to improve the reliability of the agentic system.
Let’s cover a concrete example: Take an invoice. Drex Box locates the total, the due date, and the PO number. A Drex Max decision model then chooses to approve, flag, or send it to a person, with a probability for each option.
A low score or a no-match at either step goes to a human. The LLM only sees fields that were found and checked.
To get started, open the Experimental tab in Nace Console. Paste text or upload a page image, describe the fields you need, and you get spans or boxes back.
For the API, Extract is the documented route today. You give it a document and a JSON schema of the fields you want. It fills each field and cites where in the document it came from.
The docs and links are below.
- Nace Console Experimental tab
- Console docs
- Extract endpoint docs
- Drex for Extraction
A RAG agent retrieves again whenever a claim has no matching span in the retrieved text.
Here are some ways I would use extraction models like Drex as a verifier in agent pipelines:
- A contract agent writes a summary. Before the summary goes out, Drex Locate checks each claim against the contract. Any claim without a matching span gets flagged.
- A research agent quotes a paper. Locate confirms the quoted text exists in that paper, so made-up citations get caught early.
- An invoice agent fills a payment form. Drex Box confirms each value sits on the page. A field that is not on the page stays empty.
- A RAG answer gets checked one span at a time. A low-confidence span sends the agent back to retrieve more context before it answers.
Inside the harness, only the fields the agent asked for reach its context, each with its source.
Inside the harness itself, I would make extraction a built-in step of the agent loop.
- When a tool returns a long document, the extraction model pulls only the spans the agent asked for into context. The context window stays small, and every fact keeps a pointer to its source.
- Before the agent writes to memory, each fact needs a matching source span. Facts without one never get stored.
- Before the final answer, a verify hook runs the same check on every claim. Claims it cannot locate go back to the agent with a no-match result.
This is how I think document agents will be built in the future. Incorporating more reliable steps across the pipeline with decision models, extraction models, and more deterministic steps.
Thanks to @NaceAI for the partnership on this post.
来源:elvis · x.com
同类内容
- Google DeepMind 工程师 Philipp Schmid 分享删掉 90% 智能体框架的实验X:meng shao (@shao__meng)
- Anthropic 发布始终在线 Agent 架构指南,拆解五类组件如何组成循环X:meng shao (@shao__meng)
- Anthropic Lydia Hallie 演讲:重新思考 Claude Code 最佳实践X:meng shao (@shao__meng)
- Shopify 30 人 12 周用 Agent 重建商家 App,重点重做验证流程X:meng shao (@shao__meng)
- 生产级 AI 智能体的四层上下文工程:Deep Insight 在可运行代码中的实践AWS Machine Learning Blog
- Karpathy 用 Claude Opus 5.5 两小时做出 HackerTubeX:meng shao (@shao__meng)