-
-
BidScan — Full Homepage Overview
-
How It Works — 3-Step Onboarding Explanation
-
Step 1: Enter Room Dimensions (or Leave Blank)
-
Advanced Parameters — Wall Perimeter & Area Fields
-
Step 2: Supported File Formats — Excel, CSV & Photos
-
Built-In Estimate Format Example
-
Upload Zones A & B — Compare Two Contractor Quotes
-
Step 3: Report History — Saved Under a Reusable User ID
-
AI Connection Status Indicator in the Header
-
Results Panel — Empty State with Red / Blue / Yellow Legend
-
Demo Analysis Running — Real-Time Processing State
-
Full Report — Colour-Coded Findings After Demo Analysis
-
Arithmetic Errors (Red Flags) — Formula-Level Line Checks
-
Estimate Differences (Blue) & Items Needing Clarification (Yellow)
-
Full Source Tables — Every Row Visible Next to Recognised Values
Inspiration
Every year, thousands of homeowners sign renovation contracts they can't verify. A typical contractor estimate is a dense spreadsheet: dozens of line items, construction jargon, unit abbreviations — and sometimes deliberate inflation hidden in plain sight.
We saw this problem firsthand. Friends paid for 70 m² of wall putty in a 50 m² apartment — the contractor simply forgot to subtract windows and doors from the wall area, an invisible $400 overcharge. The r/remont community (180 k members) is full of identical stories, logged after payment.
The existing options are expensive or slow: | Option | Cost | Time | | --- | --- | --- | | Independent estimator | $100–$300 | 2–3 days | | Spreadsheet audit yourself | Free | Requires domain expertise | | Ask an AI chat | Free | Unstructured; figures not tied to source |
Source: Freelance estimator market rates on Russian/CIS renovation platforms (5,000–25,000 RUB / $100–$300 per audit, 2–3 days turnaround). In our own timed test on the two sample estimates, manual verification in Excel took 18 minutes, while BidScan produced the full report in ~10 seconds.
We wanted a tool anyone could use in 30 seconds, for free — with math you can verify, not just trust.
What it does
BidScan is a web app that lets homeowners verify contractor estimates before signing.
Upload one or two estimates — Excel, CSV, or even a photo of the printed sheet. Optionally enter your room dimensions (or leave them blank — BidScan reads them from the file). Get a colour-coded report in seconds: | Colour | Category | Concrete example | | --- | --- | --- | | 🔴 Red | Arithmetic error | Line total ≠ qty × price (off by 2 400 RUB) | | 🔴 Red | Broken section total | Sum of line items ≠ printed section total | | 🔴 Red | Geometric impossibility | Wall putty area > physical wall area by 18 m² | | 🔵 Blue | Estimate difference | Contractor B charges 23 % more for floor screed | | 🟡 Yellow | Needs clarification | Duplicate line item or blank price cell |
Every finding includes:
The exact formula used (48 × 380 = 18 240 — the file says 20 640) A ready-to-copy message draft to send to the contractor
One-click demo — no file upload required, full report loads immediately.
How we built it
Core principle: AI is a translator, never a calculator
The most important design decision was separating what the AI does from what Python does:
User uploads file(s) │ ▼ parser.py ──► AI model (translator only → returns structured JSON) │ ▼ Reconcile AI output against raw spreadsheet cells │ ▼ engine.py (pure Python, deterministic) ├─► Arithmetic check (qty × price vs amount, section totals) ├─► Geometry corridors (floor area, wall area, ceiling height) ├─► Material consumption rates ├─► Duplicate detection ├─► Two-estimate semantic matching by work tag + unit └─► Message draft generation │ ▼ Flask JSON response → app.js renders report
The LLM receives the raw file or image and returns strictly-formatted JSON — column names, quantities, prices, units, and any room dimensions it can extract. All arithmetic, geometry, and comparison logic runs in pure Python (engine.py), so every figure is deterministic and verifiable — not hallucinated.
{ "items": [ {"name": "Wall putty", "unit": "m2", "qty": 48, "price": 380, "amount": 18240, "tag": "wall.putty"}, ... ], "object_info": {"floor_area": {"value": 50, "evidence": "row 3 of the file"}} }
The model is explicitly prohibited from computing totals, deriving missing prices, or making accusations. If a model returns a figure absent from the source, the local parser's value wins.
Stack Backend: Python 3.11, Flask, openpyxl AI gateway: Qwen3.6-35B-A3B with vision; fallbacks to Qwen3.5-122B and Qwen3.8-Flash-Next selected automatically Frontend: Vanilla HTML + CSS + JS — no framework, loads instantly on slow connections Persistence: SQLite (history.db) via history.py
Why Qwen3.6-35B: We chose Qwen3.6-35B-A3B (Mixture-of-Experts with 3B active parameters and native vision) via ARK Cloud because it supports both spreadsheet text and photo estimates in a single model while keeping latency and inference cost low compared to dense frontier models like GPT-4o or Claude. Pure-text models cannot process photo estimates without a separate OCR pipeline, whereas Qwen3.6-35B-A3B handled our 15-case benchmark and .jpg photo payload with 0 missed defects, with automatic fallback to Qwen3.5-122B and Qwen3.8-Flash-Next if the primary model is unavailable.
Challenges we ran into
Non-standard Excel layouts. Some contractors insert a blank separator column before "Quantity", shifting all value columns by one. We built a column-map realignment step that uses AI-detected column names, not positional order — so the quantity always lands in the right variable regardless of layout.
AI hallucination risk. Early prototypes let the model compute totals — it sometimes invented plausible-looking but wrong numbers. We redesigned the pipeline so the model is explicitly prohibited from computing anything. Every number it returns is cross-checked against the source cell. engine.py is the single source of truth.
Provider reliability. Groq returned 401 Invalid API Key after initial rate-limit errors. We switched to ARK Cloud after full end-to-end key validation.
Automatic dimension recovery. Users often don't know their room dimensions. BidScan now infers floor area from floor-work quantities (median of screed/tile/laminate rows in m²), falls back to a 2.7 m ceiling assumption with an explicit warning, and always states where each dimension came from in the report.
Accomplishments we're proud of
15/15 benchmark cases pass — benchmark.py injects one known defect at a time into a clean CSV estimate and asserts exact detection. Zero unexpected flags. Zero missed flags. Photo estimates work end-to-end — a capability no pure-Python parser can replicate. One-click demo with no file upload required, so judges and users see a complete report in seconds. Graceful degradation — if the AI is unavailable, BidScan falls back to a local column-header parser for .xlsx/.csv and continues without data loss. Photo files get a clear error rather than a silent failure. Semantic two-estimate matching — ontology.py maps work names across contractors using a tag taxonomy and unit normalisation, so "Floor levelling compound" and "Стяжка пола" are matched as the same line item even across languages.
What we learned
Separating AI "translation" from deterministic "computation" is not just cleaner architecture — it is the only way to make financial checks trustworthy. Users need to be able to verify every number independently. A pipeline where the LLM computes intermediate values breaks that guarantee.
Automatic dimension recovery from the estimate itself dramatically reduces friction. In our tests, most users left the room-dimensions form blank — and the report was still complete, with the source of every dimension clearly stated.
Colour-coded severity introduced in the empty state teaches users what to expect before they upload. This single UX decision cut the support questions in our internal beta to near zero.
What's next for BidScan
PDF parsing via embedded image rendering (the most-requested format) Regional material-rate database to promote yellow rate findings to red when a price is statistically extreme for the region Cloud history so users access past checks from any device Contractor reply flow — let users share a report link directly with the contractor, who can annotate each finding
Benchmark results (reproducible)
Run with: .venv\Scripts\python.exe benchmark.py | Case | Expected flag | Result | | --- | --- | --- | | clean | — | ✅ | | arithmetic | arithmetic | ✅ | | total | total | ✅ | | geometry | geometry | ✅ | | duplicate | duplicate | ✅ | | consumption | consumption | ✅ | | coefficient | coefficient | ✅ | | missing_price | missing_price | ✅ | | different_layout | — | ✅ | | extra_blank_header_column | — | ✅ | | two_different_tables | — | ✅ | | translated_layout | — | ✅ | | usd_arithmetic | arithmetic, total | ✅ | | unrelated_estimates | — | ✅ | | missing_price_in_table | duplicate, missing_price | ✅ |
15 / 15 passed · matched = 11 · unexpected = 0 · missed = 0
Extra parser checks (all PASS):
Blank separator columns keep values aligned Amount cell is read even when a blank column is inserted before it Excel amount formulas are read without cached values Unrelated estimates stop before comparison Mixed currencies stop before comparison Identical files report zero discrepancies Photo estimate (.jpg) returns a full JSON payload Unsupported formats (PDF, TXT) are rejected with a clear message
Limitations & When to Rely on Results (A3):
Reliable: Arithmetic checks, section totals, and duplicate/price comparisons on .xlsx/.csv files and clear, well-lit photos (all math is computed deterministically in engine.py). Do not rely blindly on: Blurry or handwritten photos, PDFs (not supported yet — rejected with a warning), and mixed-currency or unrelated estimates (stopped intentionally before comparison). Message drafts to contractors should always be reviewed by a human before sending.
AI-Assisted Development Log
| AI contribution | Human check | Decision |
|---|---|---|
Generated initial engine.py geometry corridor formulas |
Ran benchmark.py with injected geometry errors; 2 of 5 corridor checks failed (ceiling-height corridor was inverted) |
Fixed corridor direction; re-ran benchmark — 5/5 pass |
| Suggested column-realignment logic for blank-separator Excel columns | Manually constructed a CSV with an extra blank header column; confirmed qty, price, amount land correctly |
Logic kept unchanged |
Wrote first draft of history.py SQLite schema |
Inspected stored JSON for a 15-line estimate; file_bytes column was missing |
Added file_bytes column |
| Proposed Groq as AI provider | Tested end-to-end: received 401 Invalid API Key after rate-limit errors |
Switched to ARK Cloud |
| Generated README draft | Matched every statement against benchmark_report.md, engine.py, app.py; checked rubric section references |
Corrected model name; added missing failure-handling rows |