Parsing Invoices
Extract structured data from invoices.
Invoice Parsing Demo
Navigate over to the invoice-parsing playground in our playground to see the invoice parsing in action.
vlm-1
can extract structured data from invoices, along with their visual grounding in PDF or image format. Here’s a step-by-step guide on how to parse an invoice:
Here is a visualization of the parsed invoice along with the visual grounding that vlm-1
can extract from an invoice. Notice that only the specific items requested in the schema are retrieved and visualized, unlike OCR which returns all text in the document with no context:
Parsing an invoice with visual grounding enabled
For higher-quality results, we recommend enabling Visual Grounding to help the model understand the invoice and extract more accurate information. See High-Accuracy Parsing with Grounding for more details.
Parsing Invoices in 2 Steps
Submit an Invoice Parsing Job
You should see a response like this:
Wait for the Job to Complete
You can now wait for the job to complete by calling the predictions.wait
method:
You should see a response like this:
High-Accuracy Parsing with Grounding
For higher-quality results, you can enable Visual Grounding to help the model understand the invoice and extract more accurate information. You can do this by setting the config=GenerationConfig(grounding=True)
parameter when submitting the job (as shown below).
Try our Document -> JSON API today
Head over to our Document -> JSON to start building your own document processing pipeline with VLM Run. Sign-up for access on our platform.