AI Practice
Published:2026-09-02 reads57

In the architecture of an enterprise Q&A system, one trade-off affects call cost, result accuracy, and audit traceability at the same time: who performs numerical calculation. The popular approach is to let the model calculate as well, putting data into the context and letting it read and compute at the same time. In production, we chose the opposite direction: keep numerical calculation on the data source side, and let the model only understand the question and organize the conclusion.

Why the Model Is Not Allowed to Do Arithmetic

A large model handles numbers by "generation," not "computation," and floating-point reliability is not guaranteed. More importantly, audit: a number produced by the model cannot answer "which table, which row, and which field was summed to get this number." In supervision and business scenarios, source-less data is more dangerous than no data.

The Boundary of the Orchestration Layer

Our approach is to split the system into two layers. The model side understands intent: what the user is asking, which parameters are missing, and which tool should be called. The data side performs calculation: it executes SQL or service interfaces at the data source according to the call plan and returns results with provenance. What the model receives is already-calculated numbers; its job is to place them into the right wording and conclusion structure. Every number in every answer can be traced back to a real data retrieval call.

All Three Accounts Add Up

Call cost: raw data tables no longer need to be stuffed into the context, so token consumption drops significantly. Result accuracy: numbers are computed by programs, so there is no possibility of the model hallucinating a wrong calculation; the model only needs to ensure "the right tool was called." Audit traceability: retrieval plans, execution records, and returned results are logged end to end, so problems can be located at a specific step instead of guessing at a piece of generated text.

Beyond the Boundary

This architecture does not exclude the model from doing what it is good at: understanding vague questions, organizing structured conclusions, and drafting documents. Its boundary is only on the correctness of numbers and conclusions. Confidence before an enterprise Q&A system goes live comes from writing this boundary clearly into the architecture, not from hoping that model capabilities will keep improving.