How a Solo Dev Stopped Local 7B Models from Hallucinating Bank Balances: Code Calculates, Model Summarizes

Revibed69 · reddit · 2026-10-06

Building Burrow, a private local-first budgeting app running Llama 3.2/Qwen 2.5 via Ollama, a developer hit the classic problem: small models confidently produce wrong arithmetic. His fix is one hard rule—code calculates, the model summarizes. All numbers are precomputed in SQL/JS so the model only sees aggregates; prompts explicitly forbid calculation; and a CI script fails the build if any system prompt contains words like 'calculate' or 'average of'. The result is trustworthy, fast responses even on GPU-less laptops.

Original post →

More from coding & agent

coding & agent channel →