hung-k-nguyen's picture
Urgency score example; score shows its most likely level
b7774c7 verified
|
Raw History Blame Contribute Delete
2.78 kB
---
title: nutrient-document-decision-v2 demo
emoji: 🖼️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
license: other
short_description: Typed answers, boxes and spans from one read, calibrated
---
# nutrient-document-decision-v2 demo
Ask a document typed questions (yes/no, pick-one, labelled boxes on the page, labelled spans in the text) and get
every answer from one read, each with a calibrated confidence. Pick an example from document pages (invoice, tax form,
layout, page-stream splitting, open-vocabulary classification), photos, text (PII, RAG answer check, RAG retrieval, support-email urgency) or
agents (which actions a policy allows, routing a finished run, a browser agent's next step), or upload your own pages (images, or a PDF, which adds one page per sheet),
and edit the request freely. A slider on the result chooses the confidence from which boxes and spans are shown.
- 📄 **Scorecard:** [nutrient-document-decision-v2](https://huggingface.co/nutrientdocs/nutrient-document-decision-v2)
- 🏆 **Leaderboards:** [grounding](https://huggingface.co/spaces/nutrientdocs/grounding-leaderboard) ·
[document classification](https://huggingface.co/spaces/nutrientdocs/document-classification-leaderboard) ·
[open-vocabulary classification](https://huggingface.co/spaces/nutrientdocs/doc-openvocab-leaderboard) ·
[document split](https://huggingface.co/spaces/nutrientdocs/doc-split-leaderboard)
Example pages are synthetic (fictional companies and people), except the IRS Form W-9 (a US government work, public
domain) the breakfast-table photo ([Wikimedia Commons](https://commons.wikimedia.org/wiki/File:Breakfast_table_with_pancakes_(Unsplash).jpg), CC0)
and the rainy-street photo ([Flickr photo 1364551290](https://www.flickr.com/photo.gne?id=1364551290) via the COCO dataset,
[CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)). The agent and RAG retrieval examples are from the `ood` split of
[Open-Jev](https://huggingface.co/datasets/ZefanCai/Open-Jev) (CC0-1.0).
## Secret required
This Space needs an `HF_TOKEN` secret (Settings → Variables and secrets) with read access to
`nutrientdocs/nutrient-document-decision-v2-private`. The commercial model is loaded server-side at runtime with this
token; it is never exposed or downloadable from the Space.
## About the author
<a href="https://nutrient.io/">
<img src="https://avatars2.githubusercontent.com/u/1527679?v=3&s=200" height="80" />
</a>
This project is maintained and funded by [Nutrient](https://nutrient.io/) - The deterministic document infrastructure enterprises run their highest-stakes workflows on: replayable output, clear exceptions, and full audit trails on the messy, regulated documents where AI alone breaks.