How abhishek4209/ai-financial-risk-intelligence-platform-using-graph-rag-multi-agent-llm works
This is a financial-risk intelligence platform combining document ingestion, hybrid/graph retrieval, specialist AI agents, and a React dashboard. The documented user workflow runs from financial documents through indexing and retrieval to analysis and explainable reports. The README supports the broad backend pipeline, while sampled frontend code confirms dashboard rendering and HTTP calls; most Python excerpts are empty or unavailable, so internal backend links are limited to documented relationships.
Main entry points: risk_investigation.py Risk investigation · embedding_pipeline.py Embedding generation · hybrid_search.py Hybrid retrieval · supervisor.py Agent supervisor
Components 25
User experience
- Risk dashboard
frontend/src/App.jsx - Overview hook
frontend/src/hooks/useRiskOverview.js - Risk cases view
frontend/src/pages/RiskCases.jsx - Customers view
frontend/src/pages/Customers.jsx - Documents view
frontend/src/pages/Documents.jsx - Risk API client
frontend/src/services/riskApi.js
API and services
- FastAPI
src/api - Risk investigation
src/services/risk_investigation.py - RAG service
src/services/rag_service.py - Report generation
src/services/report_service.py - Document service
src/services/document_service.py - PostgreSQL
src/database/postgres.py - Redis
src/database/redis.py
Document intelligence
- Document ingestion
src/ingestion - Document preparation
src/preprocessing - Embedding generation
src/embeddings/embedding_pipeline.py - Hybrid retrieval
src/retriever/hybrid_search.py - Graph RAG
src/graph_rag - Vector databases
src/vectordb - Neo4j graph
src/graph_rag/neo4j_loader.py
Risk analysis
- Agent supervisor
src/agents/supervisor.py - Specialist agents
src/agents - Risk ML models
src/ml_models - LLM generation
src/llm/response_generator.py
Other components
- Risk analyst
Connections 26
- Risk analyst → Risk dashboard: reviews
README.md - Risk dashboard → Overview hook: renders
frontend/src/App.jsx - Overview hook → Risk API client: requests overview
frontend/src/hooks/useRiskOverview.js - Risk cases view → Risk API client: requests cases
frontend/src/pages/RiskCases.jsx - Risk API client → FastAPI: calls HTTP API
frontend/src/services/riskApi.js - Documents view → Document service: submits documents
- FastAPI → Risk investigation: dispatches investigation
- Risk investigation → RAG service: uses retrieval
- Document service → Document ingestion: processes documents
- Document ingestion → Document preparation: extracts and chunks
README.md - Document preparation → Embedding generation: prepares for indexing
README.md - Embedding generation → Vector databases: indexes vectors
README.md - Embedding generation → Neo4j graph: builds graph
README.md - RAG service → Hybrid retrieval: retrieves context
README.md - Hybrid retrieval → Vector databases: searches vectors
README.md - Graph RAG → Neo4j graph: queries graph
README.md - Hybrid retrieval → Graph RAG: combines graph search
README.md - Risk investigation → Agent supervisor: coordinates analysis
- Agent supervisor → Specialist agents: dispatches agents
README.md - Specialist agents → Risk ML models: assesses risk
- Specialist agents → RAG service: uses retrieved evidence
- Agent supervisor → LLM generation: generates answers
README.md - LLM generation → Report generation: produces reports
- Risk investigation → PostgreSQL: persists risk data
- Risk investigation → Redis: uses cache
- Report generation → Risk dashboard: presents results
README.md