Our approach to building the Finance Analyst Agent: A compound AI system
The importance of having reliable, accurate information, meant that our team decided to take a modular approach and build a compound AI system. We used Databricks, LangGraph, and modular AI pipelines to handle structured, semi-structured, and unstructured data. The agent integrates seamlessly with Slack, Teams, and custom frontends.

A key point to highlight here is that demanding “zero hallucinations” from an LLM is simply unrealistic because generative models are probabilistic by nature. The question instead is how do you handle these hallucinations, and ensure that the end result is 100% accurate. The solution lies in a modular approach, and splitting the agent into 3 separate parts:
- The interpretation module. This phase focuses on understanding vague user queries, summarizing chat history using a Milvus vector database, and rewriting questions with enriched business knowledge. Databricks’ Unity Catalog plays a vital role here, providing the centralized metadata and governance framework for understanding business-specific terminology and context.
- The retrieval module. Once the user’s intent is clear, this model leverages the augmented question and business context to construct precise SQL queries.
- The validation module. This is where Qubika tackles one of the biggest challenges with AI: hallucinations. The validation model uses a comprehensive set of inputs, including the original question, business context, and the SQL query results. This evaluation built on Databricks’ MLflow, incorporates built-in metrics, custom LLM metrics, and heuristics, to assess the accuracy of the response.
Key benefits for the enterprise from the AI agent
Among our clients that have implemented the AI Finance Agent, we have seen four key benefits:
- Accelerated insights and efficiency. Eliminating manual data searches and processing allows for significantly faster access to critical financial insights, enabling more agile decision-making. This frees data professionals from tedious data prep, allowing them to shift towards higher-value analysis.
- Accurate information and enhanced trust. Qubika’s modular approach, fine-tuning, and answer validation mitigates the risk of AI hallucinations, building trust in the insights generated. The system also provides an audit trail and links to the original data to provide necessary transparency.
- Improved compliance and data governance. The system is built with robust data governance principles, enabling role-based access restrictions to sensitive data. This enhances compliance and ensures audit readiness.
- Versatile integration and accessibility. With a customizable UI and an API, the agent can be integrated into various communication platforms (e.g., Gmail, Slack, Teams, Symphony) and deployed within mobile/web applications or internal systems like CRMs.
A leap forward in data analysis and financial intelligence
Qubika’s Finance Analyst Agent represents a leap forward in financial intelligence. By building a powerful AI agent, based on Databricks and LangGraph technologies, we’ve engineered a solution that can provide executives with unprecedented, accurate insights and analysis at speed.
If the prospect of transforming your financial operations with intelligent, accurate, and secure AI resonates with your organization’s strategic goals, contact us today.
To read more about Qubika’s approach to building powerful, enterprise-grade AI agents, review our white paper: Building powerful & scalable AI Agents