Fidel
Agentic AI Financial Management System
The problem Fidel solves
The Agentic AI Financial Management System continuously transforms fragmented, heterogeneous financial information into an evolving canonical model of a user's financial state.
The system deterministically detects proactive risks and opportunities, simulates what-if scenarios, and provides explainable, evidence-backed decision support via a local LLM reasoning engine (Qwen 3.8 27B GGUF running natively on llama.cpp).
Challenges we ran into
-
The LLM Arithmetic Problem (Hallucinations in Finance)
The Hurdle: Early on, we realized a critical limitation: Large Language Models are terrible at precise arithmetic. When we tried to have the agent calculate compound interest, goal pacing, or burn rates, it would confidently hallucinate numbers. In a fiduciary financial app, being off by even a fraction is unacceptable.
The Solution: We implemented an absolute architectural prohibition on LLM arithmetic. We built a rigorous, deterministic Financial Engine (in Python) that processes all transaction streams, runs the forecasting models, and calculates risk vectors. The LLM (Qwen) was demoted from "calculator" to "reasoning engine"—it is only allowed to consume the structured, deterministic evidence payloads generated by the engine to synthesize explainable recommendations. -
Normalizing Chaos: The Heterogeneous Data Problem
The Hurdle: Financial data in the real world is messy. We had to ingest bank APIs, OCR receipt scraps, and raw SMS transaction alerts—all formatted differently. Worse, sometimes the data was incomplete (e.g., an SMS that says "Spent Rs.400 at Cafe" but doesn't list the account balance).
The Solution: We built a dedicated Ingestion Normalizer pipeline that standardizes every input into a canonical FinancialEvent. To handle the incomplete data gracefully without the AI guessing, we engineered an Explicit Uncertainty Model. Every derived data point is strictly tagged with a confidence state (confirmed, estimated, uncertain, or unknown). If a value is unknown, the system explicitly acknowledges the data gap instead of fabricating a balance. -
The 24-Hour Parallel Development Bottleneck
The Hurdle: We had four distinct development tracks (Flutter Mobile, LangGraph Agent, Financial Engine, and FastAPI Backend) that needed to be built simultaneously within a strict 24-hour sprint. Waiting for the backend to finish before starting the frontend would have killed our timeline.
The Solution: We adopted a ruthless Contract-First and Mock-First Workflow. In Hour 1, we defined immutable JSON schemas and built a shared fixtures directory representing every possible state of the app. The Flutter developer built the entire UI against the static JSON state, while the LangGraph developer trained the agent against the mock payloads. By enforcing strict boundaries, nobody was blocked, and our final integration phase took minutes instead of hours.
Technologies used
