
Beyond RAG: Connecting Enterprise Spreadsheets with Knowledge Graphs and Deterministic Python Analytics
The numbers are in Excel. The knowledge is in your documents. The answer needs BOTH. The real opportunity isn't just faster calculations. It's connecting data with the knowledge that gives it meaning.
Your spreadsheets contain the data. Your documents contain the knowledge. But how do you build an AI system that uses both to answer complex business questions reliably?
This is a practical challenge in enterprise AI development.
Organizations maintain structured numerical data across Excel workbooks, CSV files and analytical systems. Meanwhile, the business rules, technical specifications, operating procedures and research findings required to interpret that data often exist in separate, unstructured document repositories.
Retrieving the correct document is only part of the solution. The system must also interpret the business question, select the appropriate numerical data, execute calculations and explain the results using relevant organizational knowledge.
Why conventional RAG alone is not enough
Traditional Retrieval-Augmented Generation (RAG) architectures typically retrieve relevant text passages and provide them to a large language model to generate an answer.
This works well for many document-based question-answering tasks.
However, numerical questions introduce additional requirements.
Consider a chemical manufacturer developing a new industrial coating. Its laboratory results are recorded across Excel worksheets containing formulation compositions, experimental conditions, viscosity measurements, adhesion tests and accelerated-aging results.
A researcher asks:
“Which experimental formulations meet our internal performance requirements, and what distinguishes successful batches from unsuccessful ones?”
Answering correctly requires more than finding relevant passages.
The system must identify the appropriate experimental records, apply the company's acceptance criteria, compare measured values, and account for differences in test conditions.
A retrieval-only system cannot independently execute these calculations. Conversely, using a general-purpose LLM for numerical reasoning without controlled computation can introduce arithmetic errors or incorrect analytical assumptions.
An integrated architecture: Data Analyzer + Verbis Graph
At Prodigy AI Solutions, we combine two complementary technologies:
Verbis Graph — an enterprise knowledge-retrieval engine built on a hybrid GraphRAG architecture, combining semantic vector retrieval, lexical matching, graph-linked evidence retrieval and an ontology-based semantic layer.
Data Analyzer — a natural-language analytical solution integrating enterprise knowledge retrieval with deterministic Python calculations.
The workflow comprises five logical stages.
1. Natural-language question interpretation
An LLM-based planning component interprets the question and identifies the analytical scope.
For the chemical R&D example, this includes recognizing the relevant formulations, experimental variables, comparison criteria and requested calculations.
2. Contextual knowledge retrieval
Verbis Graph retrieves relevant company knowledge, such as:
- Internal formulation specifications and acceptance thresholds
- Laboratory testing protocols
- Product-specific definitions and experimental requirements
- Historical research findings
Its hybrid architecture combines semantic search, lexical matching and graph-linked retrieval. Reciprocal Rank Fusion (RRF) supports the selection of relevant evidence from different retrieval channels.
The ontology layer provides structured representations of entities, relationships and domain concepts, supporting domain-aware interpretation.
3. Deterministic numerical execution
Instead of relying on the LLM to calculate numerical results directly, Data Analyzer uses Python-based computation.
Depending on the question and available data, analytical operations can include cross-batch comparisons, calculation of performance indicators, threshold checks and identification of numerical deviations.
The same inputs, computation rules and execution conditions produce repeatable numerical results.
4. Evidence assembly
Calculated results are combined with the retrieved business or scientific context.
Document identifiers, supporting passages and analytical outputs provide the basis for examining the generated explanation.
5. Natural-language explanation
The final LLM component produces a human-readable explanation using the computed results and supporting knowledge.
This separation of responsibilities is important:
The LLM interprets and explains. Python calculates. Verbis Graph provides enterprise context and document evidence.
Engineering considerations for production systems
Building this type of architecture requires attention to several challenges beyond retrieval accuracy.
Data consistency: Experimental records may contain missing values, inconsistent units or measurements obtained under different conditions.
Semantic correctness: Business-specific definitions must be resolved before calculations are executed.
Traceability: Users need access to supporting source documents and underlying numerical results.
Model boundaries: Deployment configurations must define which information is sent to external model endpoints and which components operate within the organization's infrastructure.
Evaluation: Numerical correctness, retrieval quality and citation reliability should be assessed separately using reproducible test cases.
These considerations are especially important in knowledge-intensive and regulated industries.
From architecture to enterprise deployment
Verbis Graph is available through AWS Marketplace as a containerized enterprise knowledge-retrieval solution.
Its application architecture includes Python/FastAPI services, vector and metadata storage, document management, ontology capabilities and configurable model interfaces.
Data Analyzer extends this retrieval foundation into natural-language numerical analysis, connecting structured datasets with the enterprise knowledge required to interpret them.
The chemical R&D scenario illustrates a potential application of the integrated architecture; validation in a specific laboratory environment requires representative datasets, domain experts and independent assessment of analytical correctness.
The bigger picture
Enterprise AI should not simply retrieve information or generate plausible explanations.
For analytical workflows, it should connect verified knowledge with reproducible computation.
That architectural separation can support more transparent, testable and dependable AI-assisted decision-making across scientific research, manufacturing, finance and other data-intensive industries.
Explore the technology:
For fellow builders: How are you combining structured numerical datasets with unstructured enterprise knowledge? Are you relying on LLM tool calling, knowledge graphs, executable analytical pipelines or another approach?
I'd be interested in learning how other teams are approaching this challenge.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article