Data and retrieval

Data extraction

Data extraction is the process of pulling specific fields or records out of unstructured or semi-structured sources, such as documents, emails, web pages or transcripts, and returning them in a consistent, structured format.

A great deal of useful business information is locked in free text: a delivery date buried in an email thread, a renewal clause in a contract, a job title in a CV. Data extraction is the step that finds those values and writes them into named fields, so they can be searched, counted or fed into another system. Language models have made extraction far more flexible than the old template and regular-expression approaches, which matters to buyers whose sources vary in wording and layout.

How it works

Every extraction job starts with a schema: the list of fields wanted, their types and the rules they must follow. A contract extractor might ask for party names, start date, term length, notice period and governing law. The source is converted to text, by OCR for scans or by parsing HTML for web pages, and then a model reads it and fills the schema. Modern builds ask the model for structured output so the response is valid JSON that matches the schema every time.

Simpler extractions can use rules or named entity recognition for things like dates, amounts and company names. Harder ones, where the answer has to be inferred ("is there an automatic renewal?"), need a capable language model and clear instructions. Either way, extracted values are usually normalised afterwards: dates into one format, currencies into codes, names matched against existing records (data cleaning).

Extraction is the middle step of many larger systems. It sits inside intelligent document processing, after web scraping, and at the start of most ETL jobs that ingest text.

What it means for cost

The size of the schema and the ambiguity of the fields drive effort more than volume does. A dozen clearly labelled fields from one document type is a small build. Fifty fields across several document types, some of which need judgement, is a project with its own test set and review process.

Ask a builder three things: how they will test accuracy field by field, what happens when a field is missing or unclear (a blank, a flag or a guess), and how the schema can be changed later without a rebuild. Running costs rise with document length, because long sources mean more tokens per call. Live figures for extraction builds are on the document data extraction cost page.

Common questions

How accurate is AI data extraction?

It depends on the field and the source. Explicit values such as invoice numbers are usually extracted very reliably, while fields that require interpretation are less so. The only honest answer for a given project comes from testing on a sample of the buyer's own documents.

Should extraction use a language model or rules?

Use rules where the format is fixed and predictable, because they are cheap and exact. Use a language model where wording and layout vary. Many good builds combine both, with rules checking what the model returns.

Related terms

Pricing a build that involves Data extraction? Send the brief and get a fixed price set next to the market range.Get a quote