FR Demo

CostMap

Scan your receipts. Every amount is checked, and you see where the money goes.

The CostMap app in useA phone shows the real screens of the demo: scanning a receipt, the check of a computed price, named lines, a bank import, price comparison and the map. Then a laptop shows the same app on a bigger screen.
The CostMap app in useA phone shows the real screens of the demo: scanning a receipt, the check of a computed price, named lines, a bank import, price comparison and the map. Then a laptop shows the same app on a bigger screen.

Check A faded price is computed from the total, and you confirm it.

Explore

?CostMap asks youcomputed

Engine

Break a receipt and watch it get checked.

Generator

Make a fake receipt with the damage you choose.

class Receipt modelA receipt is composed of items and VAT lines. Each value records where it came from.«dataclass»Receipt+ doc_type : str+ merchant_name : str [0..1]+ siret : str [0..1]+ date : str [0..1]+ currency : str [0..1]+ total_cents : int [0..1]+ discounts_cents : int+ prov : Map<str, str>+ to_dict() : Map+ from_dict(d) : Receipt«dataclass»Item+ raw_name : str+ qty : float [0..1]+ unit_price_cents : int [0..1]+ line_total_cents : int [0..1]+ weight_kg : float [0..1]+ vat_code : str [0..1]+ confidence : float+ bbox : float [0..4]«dataclass»VatLine+ code : str [0..1]+ rate : float [0..1]+ base_cents : int [0..1]+ vat_cents : int [0..1]«enumeration»Provenancereadcomputedinferredmissinguser«dataclass»Issue+ path : str+ kind : str+ severity : str+ candidates : List+ fixes : List*1*1provpoints atclass Receipt model

Design

Use cases, classes, states, sequences, architecture.

The same question ranked by each search stageThe right document, highlighted, and where each stage ranks it.« le chargeur avec 2 ans de garantie »KeywordsMeaningMergedRerankedReranked1234chargeur USB-C 65 WMAGASIN I · warranty 3 yrchargeur USB-C 65 WMAGASIN B · warranty 2 yrlave-linge 8 kgMAGASIN B · warranty 2 yrbouilloire inoxMAGASIN E · warranty 2 yrKeywordsMeaningMergedReranked1234rank at each stage

RAG

How receipts are searched, and where search is not used.

stm Agent graph (LangGraph)The compiled LangGraph: each box is a node, dashed lines are choices made at run time.ambiguousreplysmall talkabout datatool callunprovenstartrouteclarifychatagenttoolsverify_numbersredraftanswerstm Agent graph (LangGraph)

Agent

A LangGraph agent whose every figure is proven.

Mine80 %
TF-IDF81 %
Both82 %

Models

Seven models: what worked, what failed.

Data

Synthetic receipts, damage, labels, licences.

DoneIn progressNext

Roadmap

Done, in progress, next.

In numbers

Technologies

Machine learning
PyTorchONNXHugging FacedocTRKaggle
LLM and search
LangGraphLangChainMCPFastEmbedSQLite FTS5
Application
PythonTypeScriptSveltePyodideFastAPI
Hosting
Cloudflare WorkersD1R2Workers AI
Planned
Vision-language model fine-tuning (LoRA)Combining reading enginesHugging Face Spaces