How harini-n-s/rawbank works
Rawbank Sentient is a fraud-intelligence and investigation platform. Analysts use the web console to inspect operational metrics, alerts, customers, and transactions, search entities, and investigate evidence with a conversational copilot. The backend serves these workflows alongside deterministic fraud evaluation and a separate retrieval/evidence layer; the copilot adds conversational context and a configurable LLM adapter. The supplied excerpts support the retrieval and rules flows, but not most router-to-repository wiring, so those connections are omitted. Several frontend and backend capabilities are represented at their source paths without inferred internal call chains.
Main entry points: api.ts API client · retrieval.py Retrieval routes · retriever.py Hybrid retriever · engine.py Rules engine
Components 27
Analyst console
- Console shell
frontend/src/App.tsx - Global search
frontend/src/components/GlobalSearchModal.tsx - Entity investigation
frontend/src/components/EntityDrawer.tsx - Evidence dossier
frontend/src/components/EvidenceDossier.tsx - Command centre
frontend/src/pages/CommandCentrePage.tsx - Alert workspace
frontend/src/pages/AlertsPage.tsx - Transaction workspace
frontend/src/pages/TransactionsPage.tsx - Copilot workspace
frontend/src/pages/CopilotPage.tsx - API client
frontend/src/services/api.ts
Backend API
- FastAPI application
backend/app/main.py - Configuration
backend/app/config.py - SQLite database
backend/app/database.py - Retrieval routes
backend/app/routers/retrieval.py
Retrieval and copilot
- Entity resolver
backend/app/retrieval/entity_resolver.py - Query parser
backend/app/retrieval/query_parser.py - Evidence indexer
backend/app/retrieval/indexer.py - Hybrid retriever
backend/app/retrieval/retriever.py - Evidence builder
backend/app/retrieval/evidence_builder.py - Copilot service
backend/app/llm/service.py - Conversation context
backend/app/llm/context_manager.py - LLM adapters
backend/app/llm/client.py
Fraud evaluation
- Rules engine
rules/engine.py - Rule framework
rules/base.py - Rule evidence
rules/evidence.py - Evaluation service
backend/app/services/evaluation_service.py - Evidence service
backend/app/services/evidence_service.py
Other components
- Analyst
Connections 29
- Analyst → Console shell: uses
frontend/src/App.tsx - Console shell → Command centre: renders
frontend/src/App.tsx - Console shell → Alert workspace: renders
frontend/src/App.tsx - Global search → API client: searches via
frontend/src/components/GlobalSearchModal.tsx - Entity investigation → API client: loads via
frontend/src/components/EntityDrawer.tsx - Entity investigation → Evidence dossier: renders
frontend/src/components/EntityDrawer.tsx - Command centre → API client: loads via
frontend/src/pages/CommandCentrePage.tsx - Alert workspace → API client: loads via
frontend/src/pages/AlertsPage.tsx - Transaction workspace → API client: loads via
frontend/src/pages/TransactionsPage.tsx - Copilot workspace → API client: investigates via
frontend/src/pages/CopilotPage.tsx - API client → Retrieval routes: requests retrieval
- FastAPI application → Retrieval routes: registers routes
- Retrieval routes → Hybrid retriever: retrieves with
backend/app/routers/retrieval.py - Retrieval routes → Evidence builder: builds evidence
backend/app/routers/retrieval.py - Retrieval routes → Evidence indexer: indexes with
backend/app/routers/retrieval.py - Hybrid retriever → Query parser: parses with
backend/app/retrieval/retriever.py - Hybrid retriever → Entity resolver: resolves with
backend/app/retrieval/retriever.py - Hybrid retriever → Evidence indexer: queries
backend/app/retrieval/retriever.py - Query parser → Entity resolver: resolves entities
backend/app/retrieval/query_parser.py - Copilot service → Evidence builder: assembles evidence
backend/app/llm/service.py - Copilot service → Conversation context: records turns
backend/app/llm/service.py - Copilot service → LLM adapters: generates response
backend/app/llm/service.py - Evaluation service → Rules engine: evaluates with
backend/app/services/evaluation_service.py - Evidence service → Rules engine: evaluates with
backend/app/services/evidence_service.py - Evidence service → Rule evidence: uses evidence
backend/app/services/evidence_service.py - Rules engine → Rule framework: runs rules
rules/engine.py - Rules engine → Rule evidence: assembles evidence
rules/engine.py - FastAPI application → Configuration: configures
backend/app/main.py - SQLite database → Configuration: reads settings
backend/app/database.py