Document extraction
Document extraction with AI turns invoices, forms and contracts into structured data. The model reads each field and gives a confidence level, rules check the totals and catch duplicates, and a person reviews anything doubtful before it is exported to your software. Hebrew documents and phone scans are included.
Document extraction: an overview
AI document extraction replaces the step where someone reads a PDF and types the supplier name, the date, the line items and the total into another system. The model reads each document and returns structured fields, each with a confidence level. That part is quick to prototype. What makes it usable every day is everything that happens after the model has answered.
We put rules between the model and your software. The line items must add up to the subtotal, the VAT must match the applicable rate, the supplier must exist in your list, and the invoice number must not have been processed before. A document that fails a rule, or has a field below the confidence threshold, goes to a review screen where a person sees the original next to the extracted values and corrects them. Everything else can flow through, and you decide where the threshold sits.
Corrections made on the review screen are logged next to the original value. They show which fields and which suppliers cause trouble, and they become test cases for the next change of prompt or model.
What the service covers
Field definition
We list the fields you need from each document type, with their format: dates, amounts, VAT, supplier ID, line items. Fields your software does not use are left out.
Document intake
Documents arrive by email, upload, scanner folder or API, and each one gets an ID and a stored original. Duplicates are caught at this stage, by file and by content.
AI reading and confidence
The model reads each document and returns structured fields with a confidence level per field. Scans and photos are straightened and run through text recognition first.
Validation rules
Business rules check totals, VAT, dates, supplier lists and purchase orders. Every rule failure appears on the review screen with its reason.
Review screen
Reviewers see the original next to the extracted fields, with doubtful values highlighted. Corrections are logged with the original value and the reviewer's name.
Export and audit trail
Approved data goes to your accounting software, ERP or business system through an API or an import file. Each record keeps a link to the original document and the history of its review.
When it is the right call
- 01
Someone on your finance or operations team retypes invoices or delivery notes into your accounting software every day.
- 02
You receive documents from many suppliers, each with its own layout, so template-based OCR keeps breaking.
- 03
Errors from manual data entry only surface during month-end reconciliation.
- 04
You need contracts or forms turned into searchable fields, such as renewal dates or signatory names.
What you get
Automatic reading with a confidence level per field
Consistency checks and duplicate detection
Review screen for doubtful documents
Export to your accounting or business software
How we work on it
Step 1
Collect sample documents
We gather a representative set of real documents, including bad scans and unusual layouts. Your team marks the correct values, and that becomes the evaluation set.
Step 2
Define fields and rules
Each field gets a type and a format, and we write the business rules that check totals, dates, duplicates and reference data. Each rule is agreed with the person who does the work today.
Step 3
Build the pipeline
We build intake, reading and validation, and run the sample documents through them on a test URL. Results are compared field by field with the values your team marked.
Step 4
Build the review screen
Doubtful documents appear next to their extracted values, and reviewers correct, approve or reject them in one place. The screen is tested with the people who will use it every day.
Step 5
Connect the export
Approved data goes to your accounting or business software through its API or an import file. Each export is recorded, so any record can be traced back to its document.
Confidence levels and business rules decide what a person reviews
A confidence level on its own is not enough, because a model can be confident and wrong. Business rules catch a different class of errors: a total that does not match its lines, a date in the future, an amount that differs from the purchase order. A document goes straight through only when its fields are confident and every rule passes.
Where the threshold sits is a business decision. A team that pays suppliers based on the extracted data will want more review than a team indexing contracts for search. We start strict, then relax the threshold field by field as the review log shows which values are reliable.
Handling Hebrew invoices, scans and mixed layouts
Israeli invoices often mix Hebrew text with numbers, English product names and right-to-left tables. Photos taken with a phone add skew and shadows. We test these cases as a separate group in the evaluation set, because a model that reads clean English PDFs well can still swap columns in a right-to-left table.
When the source system can export a structured format, such as an electronic invoice file, we read that instead of the PDF. Extraction is for documents that only exist as images or free layouts, and it is worth skipping when a cleaner source is available.
Protecting personal and financial data in extracted documents
Invoices and contracts carry bank details, ID numbers and prices. Originals and extracted data are stored in your environment, access to the review screen follows your roles, and every view and correction goes into an audit log. When a provider's API reads the documents, we use terms under which the data is not used for training.
Retention is decided up front: how long originals are kept, who may delete them and what happens to documents that failed review. Those rules are written into the system rather than left to habit, and they are documented in the repository with the other design decisions.
Technologies
- Large language model APIs
- RAG
- Vector search
- Python
- Node.js
- PostgreSQL
How you can work with us
Fixed-scope project
The scope of the first version is written down, split into milestones and priced per milestone. It suits a product or a feature with a clear outline.
Dedicated team
A team works on your product over the long run, with its own planning and release cadence. It suits a product that keeps changing.
Team extension
One or more of our engineers join your team and work with your tools and routines. It suits a company that knows where it is going but lacks people or a specific skill.
Monthly support
A monthly retainer covers maintenance, updates and small changes, with an agreed response time. It suits a product in production that needs upkeep more than new features.
Questions about Document extraction
How accurate is AI document extraction?
It depends on your documents, so we measure it on them instead of quoting a number. During the pilot we run a sample of your real documents through the system and report, field by field, how often the extracted value matched what a reviewer confirmed. That result sets the review threshold. After launch, accuracy keeps being tracked through the corrections made on the review screen.
Can it read Hebrew invoices and scanned documents?
Yes, Hebrew documents and scans are part of what we test. Quality on Hebrew and on poor scans varies between models, so we evaluate those cases separately and route doubtful ones to review. A very poor scan may still need a person.
Which systems can the extracted data be exported to?
Any software with an API or an import format, such as accounting software, an ERP, a CRM or a spreadsheet. We map the extracted fields to the target system's fields and log every export, so a document can be traced from the original file to the record it created. If the target system rejects an import, its error appears on the review screen too.
How is AI extraction different from OCR templates?
Template OCR reads text from fixed positions, so each new supplier layout needs a new template, and a template breaks when the layout changes. A language model reads the document more like a person, finding the total or the invoice number wherever it sits. It can still make mistakes, which is why rules and review stay in place. For a few fixed forms that never change, templates can be the cheaper choice.
What drives the cost of a document extraction project?
The variety of documents matters most: a single invoice format is a small project, contracts with free wording are a larger one. The number of fields, the complexity of the validation rules and the integration with your software come next. Volume affects running costs more than development. We measure the cost per document during the pilot.
Do we still need people to check documents?
Yes, for the documents the system flags, and that is by design. Documents that pass every rule with confident fields can go straight through once you trust the results. The review screen handles the rest, and the review load drops as rules and prompts improve from the corrections. The aim is to remove retyping, not the person who knows when an invoice looks wrong.
In the same service area
Design, build and ship your project
Describe it in three lines. We reply with specific questions and a first take on how to proceed.