FraudForge AI Logo
FraudForge AI

Architecture

Modern, scalable, cost-optimized architecture built with open-source technologies

Interactive Architecture Diagram

Click below to view the architecture diagram

Technology Stack

Frontend

Next.js 14
React SSR with App Router
TypeScript
Type-safe development
Tailwind CSS
Sapphire Nightfall theme
Framer Motion
Smooth animations

Backend

FastAPI
High-performance Python API
LangGraph
AI workflow orchestration
Pinecone
Cloud vector database
MCP
Model Context Protocol
Pydantic
Data validation

AI Models

Qwen3-32B
Financial reasoning and AML detection with Qwen (Hugging Face)
Two-Stage: MedGemma-4B-Local → Nemotron-Super
Local MedGemma-4B clinical vision then Nemotron fraud analysis with RAG + MCP
Nemotron-Ultra-550B
Marketplace fraud and refund-abuse detection with NVIDIA Nemotron
Nemotron-Ultra-550B
Supplier and logistics fraud detection with NVIDIA Nemotron

Infrastructure

Google Cloud Run
3 services: frontend, backend, MCP
Terraform
Infrastructure as Code
Secret Manager
API keys stored securely
Artifact Registry
mcp / backend / frontend images

📊 Data Sources

Supports ingestion from:

🏥

Claims Systems

EDI X12HL7FHIR
🏦

Banking Ledgers

ISO8583SWIFTACH
🛒

E-commerce Events

JSONWebhooksAPI
📦

Supply Chain Telemetry

IoTERPSCM
📄

Batch Uploads

CSVParquetJSON
⚡

Streaming

Pub/SubKafkaSQS

Request Flow

1

User Input

Form entry or document upload (PDF, receipt photo, DICOM). OpenRouter vision or local MedGemma-4B fills the form; you review, then detect.

2

API Gateway

Next.js frontend sends request to FastAPI backend on Cloud Run

3

LangGraph Routing

Intelligent router analyzes sector and routes to optimal LLM

4

MCP Enrichment

Backend calls fraud-forge-mcp tools for wallets, credentials, and seller signals

5

RAG Enhancement

Pinecone rag namespace retrieves similar fraud patterns from vector database

6

AI Analysis

Sector-specific LLM processes input with MCP + RAG context

7

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

Terraform

Everything deployed with Terraform. One command, full stack:

# Deploy entire platform
$ ./deploy-terraform.sh
# Behind the scenes:
docker build/push fraud-forge-mcp
docker build/push fraud-forge-backend
docker build/push fraud-forge-frontend
terraform apply # 3 Cloud Run services
# Output:
✓ MCP tool server deployed to Cloud Run
✓ Backend deployed (MCP_SERVER_URL wired)
✓ Frontend deployed to Cloud Run
✓ Cost-optimized infrastructure ready