Chapter 01 — Executive Summary
1.1 What Is AFP?
The Agentic Financial Parser (AFP) v2.0 is a production-grade, enterprise-class AI system architected for parsing, indexing, and intelligent querying of complex Indian Financial and Legal documents — including the Income Tax Act, Finance Bills, RBI Circulars, and the Constitution of India.
Unlike traditional static RAG pipelines that blindly retrieve-then-generate, AFP implements a 9-Node Agentic Architecture built on LangGraph StateGraph — capable of autonomous decision-making, dynamic web fallback via the ReAct pattern, real-time Human-in-the-Loop (HITL) chunk review, and multi-tiered document parsing. The entire system operates at $0 monthly infrastructure cost on a strict 512MB RAM budget using exclusively free-tier cloud services.
1.2 Key Achievements & Metrics
9
LangGraph Nodes
256d
Jina MRL Embeddings
75%
Storage Reduction
~95%
Retrieval Accuracy
7
Upload Security Layers
$0
Monthly Infra Cost
- Autonomous contradiction detection between visual chart data and document text — demonstrated during stress testing
- Jina v3 MRL: 1024-dimensional embeddings compressed to 256 dimensions — 75% storage reduction, ~95% retrieval accuracy retained
- Confidence-aware ReAct routing: pipeline pauses at <45% confidence and seeks user HITL authorization before any web search
- Hallucination Guard as a secondary LLM-as-judge pass — flags unverified claims without blocking pipeline flow
- SHA-256 deduplication: identical file re-uploads skip re-indexing entirely — API quota and compute fully protected
- PyMuPDF as 100% free, zero-latency local fallback parser — protects LlamaParse API quota for user temporary uploads
- 30-day GDPR-compliant TTL auto-deletion on MongoDB chat history, feedback, and HITL queues
- Upstash Redis: 10 queries/minute chat rate limit, 5 file uploads/day per user, 1-hour response cache
- Circuit breakers on all 3 external APIs — 3 consecutive failures opens circuit for 30 seconds with graceful degradation
- LangGraph StateGraph orchestrating full state and conditional edge routing across all 9 nodes
Agentic Financial Parser v2.0 — Technical DocumentationPage 2