
Architecture
Modern, scalable, cost-optimized architecture built with open-source technologies
Technology Stack
Frontend
Backend
AI Models
Infrastructure
📊 Data Sources
Supports ingestion from:
Claims Systems
Banking Ledgers
E-commerce Events
Supply Chain Telemetry
Batch Uploads
Streaming
Request Flow
User Input
Form entry or document upload (PDF, receipt photo, DICOM). OpenRouter vision or local MedGemma-4B fills the form; you review, then detect.
API Gateway
Next.js frontend sends request to FastAPI backend on Cloud Run
LangGraph Routing
Intelligent router analyzes sector and routes to optimal LLM
MCP Enrichment
Backend calls fraud-forge-mcp tools for wallets, credentials, and seller signals
RAG Enhancement
Pinecone rag namespace retrieves similar fraud patterns from vector database
AI Analysis
Sector-specific LLM processes input with MCP + RAG context
Score & Explain
Guardrails + 0-100% fraud score with decision trace
Architectural Highlights
Cost-Optimized Operations
Google Cloud Run with auto-scale to zero. Minimal costs vs $2M+ BPM licensing.
Vector RAG with Pinecone
Pinecone cloud vector database stores fraud patterns and MCP context. Fast semantic similarity search for context enrichment.
LangGraph Routing
Intelligent workflow orchestration routes to optimal sector-specific LLMs.
Serverless Scale
Automatically scales from 0 to 1000+ concurrent requests. Pay only for actual usage.
Vector Database (Pinecone)
Cloud vector database for RAG pattern matching and MCP context storage. Scalable semantic search.
Infrastructure as Code
Everything deployed with Terraform. One command, full stack: