Energy · Document intelligence
Reliable data extraction from industrial technical reports
An LLM extraction system that navigates the structure of reports, identifies the right objects first, then extracts their attributes — and measures honestly what it does.
In short, for decision-makers
The business problem
Technical reports hundreds of pages long contain the data the company needs, but they have to be read and re-typed by hand — with a risk of error every time.
Why it's hard
- Long documents mixing text, tables and scans
- Several objects described in the same report
- A right value attached to the wrong object is a serious error
- Reliability must be proven, not just promised
What was demonstrated
- Better coverage of reports describing several objects, on the tested corpus
- A reproducible evaluation framework for comparing future models
- Actionable error analysis: false positives, role confusion, provenance
01Context
In the energy industry, every technical operation produces long end-of-work reports. They mix text, tables and scanned pages, and often describe several technical objects at once. To index those objects in master-data systems, reliable metadata has to be extracted — automatically, and at scale.
02The technical stake
The real risk isn't missing a value — it's attaching a correct value to the wrong object. Classic RAG, built on fixed chunks and vector similarity, can return a plausible depth or date… that belongs to a neighbouring object cited for reference. In a master-data system, that is a data error.
03Role and scope
HPC data scientist / data engineer — design, implementation and evaluation
- 01Study of the limits of existing RAG approaches on these documents
- 02Design of an alternative retrieval path based on report structure
- 03Adapting two-pass extraction to tree-based navigation
- 04Building the evaluation protocol and error analysis
04Technical approach
The engineering decisions.
- 01
Index structure, not fragments
Each report becomes a tree of sections, headings and reusable summaries. The system knows where to look instead of searching everywhere.
- 02
Hybrid retrieval without a vector index
LLM-guided selection inside the tree, complemented by lexical search for domain markers. “Vectorless” doesn't mean no lexical search.
- 03
Identify first, then extract
A first pass lists the objects and their identifiers; the second extracts attributes constrained by that list, respecting the domain hierarchy between primary objects, derived ones and mere references.
- 04
Deterministic validation
Value normalisation, schema validation, role markers, provenance for every extract and review priority for the human operator.
- 05
Route models per stage
Several open-weight models were compared on GPUs; each stage is assigned to the best-suited model, trading off quality against processing time.
05Processing chain (simplified view)
- 01
PDF / OCR report
- 02
Markdown tree
- 03
Guided + lexical navigation
- 04
Pass 1: objects
- 05
Pass 2: attributes
- 06
Validation & provenance
- 07
Operator review
Intentionally simplified. Internal components and company data are not published.
06Challenges and trade-offs
Detection versus accuracy
The best model at extracting attributes wasn't the best at detecting objects — hence per-stage routing rather than a single model.
Measuring without fooling ourselves
Evaluation separates object identification from attribute quality, and tracks missed, misidentified and over-generated objects separately. Scores change with the counting convention — so we document it.
Acknowledged limits
Some derived objects remain hard to find, OCR quality limits some attributes, and the approach does not claim to beat vector RAG universally.
07Results and demonstrated capabilities
- Better coverage of reports describing several objects, on the tested corpus
- A reproducible evaluation framework for comparing future models
- Actionable error analysis: false positives, role confusion, provenance
- A prototype proposed for integration into an existing processing pipeline
08Status, transparently
Evaluated prototype
Evaluated on an annotated corpus and proposed as a candidate for integration into an existing pipeline. No standalone production deployment is claimed.
Personal contribution: the two-pass extraction principle existed in an earlier module. The work described here covers adapting it to tree navigation, the identity constraint, object-hierarchy handling, batch processing, validator integration and building the evaluation. Detailed figures are not published.
09Available evidence
- Not publicInternship thesis and defence (internal)
- Not publicEvaluation on an annotated corpus — figures not published
10Similar problems we can solve
- Invoices, purchase orders, contracts, quotes
- Inspection, audit or expert reports
- Customer or supplier files to index
- Any re-typing of data from PDFs or scans