Rules first, model second
The common path is deterministic, so it needs no model, costs nothing per receipt and cannot hallucinate. The LLM only steps in for ambiguous or low-confidence fields.
Computer Vision · 2026
AI receipt intelligence for a cashback platform: it reads receipt photos and returns validated, structured data, and sends anything doubtful for review.

The brief
Nibbl AI is a platform where brands fund rebate and review campaigns and shoppers earn rewards by uploading receipts. I built its AI receipt intelligence service. It turns a receipt image into structured, validated JSON that the backend can use for cashback and rebate processing: the merchant, items with quantities, prices, discounts and taxes, dates, currency, totals, payment method and masked card details. The service also writes AI-assisted product reviews and suggests questions for reviewers.
The problem
A basic OCR system can read text, but a real one has to decide whether what it read makes sense, on receipts that are blurry, inconsistent, multilingual and financially ambiguous.
What I did
I built a layered pipeline: OCR, normalisation, rule-based extraction, validation, confidence scoring, provenance, and an optional LLM fallback for fields the rules cannot settle.
The system
Measures blur, brightness, contrast and skew, and preprocesses poor receipts before reading them.
Several engines behind one interface: Tesseract, PaddleOCR, PaddleOCR-VL and OpenAI-compatible vision models.
Rules extract the merchant, items, dates, currency, totals and payment method first. An LLM is only a fallback for ambiguous fields, and it is off by default.
Subtotal, tax, payment and total are cross-checked, every field gets a confidence score, and doubtful receipts go to manual review.
Choices
The common path is deterministic, so it needs no model, costs nothing per receipt and cannot hallucinate. The LLM only steps in for ambiguous or low-confidence fields.
A date like 08/09/26 is ambiguous, so it is not guessed. Anything missing stays null instead of being invented, and low-confidence results go to a person.
Card-like numbers are detected and redacted before the data goes anywhere.
Capabilities
Problems
Problem
Receipts are blurry, inconsistent, multilingual and financially ambiguous, and OCR on its own cannot tell whether the result makes sense.
Fix
A layered pipeline: OCR, normalisation, rule-based extraction, validation, confidence scoring, provenance, and an optional LLM fallback.
Problem
OCR confuses 0, O, 1 and I, totals may not match the items and tax, and a wrong guess would pay out the wrong cashback.
Fix
Financial validation catches the mismatches, unclear fields stay null, and low-confidence results are routed to manual review instead of being accepted.
Stack
Reading receipts
Service
In my words
The receipt pipeline is implemented and tested, and it runs as an API in a container built for deployment on the project's AWS setup. Review generation and question suggestions are built. Two endpoints are still planned and not finished: the adaptive conversational question endpoint and the AI review summary.
The result
The receipt pipeline is built and covered by 533 automated tests, which pass in 13.46 seconds. It runs as a containerised FastAPI service with a versioned API contract and OpenAPI documentation.
Next project
Finance AI
LLM Application
I work on the AI layer: retrieval, reasoning and the code underneath. I hand it over ready to integrate.