Skip to content

architecture

2 posts with the tag “architecture”

Keep the LLM Out of the Arithmetic: Let It Classify, Let Code Compute

When an LLM-backed feature needs both judgment and precise numbers, letting the model do the math produces subtle, silent errors. The fix that held: restrict the model to a closed set of about 11 structured categories, delegate every calculation to deterministic code, and treat unsupported inputs as an explicit, logged outcome rather than a fabricated fit.