Excel Analysis Assistant

Excel answers where the maths is done by code, not the model

We built an Excel analysis assistant on Vorion for our energy customer. Standard AI tools flatten multi-tab workbooks and invent arithmetic. Our pipeline keeps sheets, headers and formulas intact, sends every calculation to deterministic Python or SQL tools, and cites the workbook, sheet and cell range behind each figure.

Python SandboxHybrid Search (Dense + BM25)Smart RouterMCP Tool ServiceCitation Guardrails
Excel Analysis Assistant

The challenge

Financial, pricing and production workbooks are structures, not text: tabs that reference each other, formulas built on formulas. Naive RAG chunks them into text, so the model loses which number belongs to which header and fills the gap with a guess that looks right.

Our approach

The cautious answer is to tell people not to use AI on numbers. The need to question the workbooks does not go away, so people do it anyway. We split the job in two: the model understands the question, code does the arithmetic.

The solution

An Excel RAG and deterministic computation pipeline

  • The parser keeps tab hierarchy, cell coordinates and formula logic.
  • Totals, variances and ratios are calculated by deterministic Python or SQL tools. The number comes from executed code, not from the model's text.
  • Repeated workbook schemas are cached; simple lookups go to cheaper models.

Controls and oversight

  • Every figure cites workbook, sheet name and cell range, so any number can be checked.
  • Python analysis runs in an isolated sandbox with process and memory limits.