AGENTS  ROUTER + 4RAG  6 POLICY PDFSEVALS  28/28 E2ETESTS  70+
LEVEL P-05CONFIRM BEFORE BLOCK
◂ ALL PROJECTS
CASE FILE P-05 ── AGENTS · RAG

SECURE
BANK

MULTI-AGENT AI ASSISTANT FOR BANKING CUSTOMER SUPPORT

It answers policy questions from the bank's own documents, shows a customer their balance and transactions, freezes or blocks cards with a confirmation step, and hands serious cases to a human.

Answers stream in word by word, a page refresh keeps the conversation, and customers can list their own support tickets.

SAFE BY DESIGN
Card numbers, PAN and OTPs are masked before any AI model sees them, a customer can only reach their own data, and blocking a card always needs an explicit Yes.
SCREEN ── POLICY ANSWERMOCK DATA
SECUREBANK — MULTI-AGENT BANKING SUPPORT screenshot
▸ ASK A QUESTION
SCORESCOREBOARD
END-TO-END EVALS
28/28
FAQ, account, card, escalation and 9 security conversations.
POLICY SEARCH
94%
Answer in the top 4 chunks on 35 questions (MRR 0.83).
ROUTING
31/31
Every test message sent to the right specialist.
TESTS
70+
Unit and API tests; no API key or model download needed.
PATHPOLICY SEARCH
MEANING ONLYEMBED▸TOP 4▸86%
USEDLABELLED CHUNKS▶EMBED▶RE-RANK TOP 12▶KEEP 4▶94%

Keyword search and a bigger embedding model did not help on this corpus, so they are not in the code. A cross-encoder re-ranker and a document + section label on every chunk did.

BOSSHOW IT HOLDS UP
CORE AGUARDRAILS

The guardrail hides sensitive numbers before a message reaches any model or is saved. Each agent has its own prompt and only the tools it needs; money and card actions happen in plain code behind those tools.

MASKEDCARD · PAN · OTP · PIN
IDENTITYSIGNED TOKEN ONLY
PASSWORDSBCRYPT + LOCKOUT
RATE LIMIT20 MSG / MIN
A prompt-injection attempt leaks no data and is passed to a specialist.
CORE BHUMAN IN THE LOOP

Card blocking uses LangGraph's interrupt(): the graph pauses, the page shows Yes / No, and /approve resumes it. Fraud and hacked-account reports create a high-priority ticket.

PAUSEINTERRUPT()
RESUME/APPROVE
MEMORYSQLITE CHECKPOINTS
ESCALATIONPRIORITY TICKET
Conversations survive restarts and page refreshes.
FIG 1 ── ANSWER IN TOP 4 CHUNKS35 QUESTIONS
MEANING
86%
+ BM25
86%
BGE + BM25
86%
+ RE-RANK
89%
+ LABELS
94%
Highlighted = the setup in use
VERDICT
Measured, not guessed: 28/28 end-to-end conversations, 31/31 routing and 94% policy-search hit@4.
All data is mock data. On Groq's free tier, running every eval several times a day can pause the app with HTTP 503 until the budget resets.
NEXT LEVEL
▸ A fallback model for when one is rate-limited.
▸ A dashboard for the specialists who work the tickets.
▸ A Redis-backed rate limiter for several server processes.
SELECTSPECIALISTS
FAQ
P-05 · 01
FAQ AGENT

Searches and re-ranks the six policy PDFs and cites file and page.

ACC
P-05 · 02
ACCOUNT AGENT

Balance and transactions from the database through tools, never from model memory.

CARD
P-05 · 03
CARD AGENT

Freeze, block or dispute a card, always after an explicit Yes.

SOS
P-05 · 04
ESCALATION

Creates a high-priority ticket and gives safety advice.

RULES OF PLAY
▸ The model decides what to call, not how data is read or changed.
▸ The customer ID comes from the signed token only.
▸ Requests are logged with status and timing, never message text.
▸ Replies are escaped before display.
ARTEFACTS
STACK ▸ Python · FastAPI · LangGraph · Groq
RAG ▸ 6 policy PDFs · cross-encoder re-ranker
AUTH ▸ bcrypt · RS256 JWT · lockout
SHIP ▸ Docker · GitHub Actions CI
[ ▸ SOURCE CODE ]
◂ P-04 CUSTVALUE CONTINUE? ▸ ALL PROJECTS P-06 REFUNDGUARD ▸
LOKESH KUMAR
IIT Roorkee engineer building AI agents, LLM evals and data systems that change real decisions.
CONTACT
MAIL ▸ lokeshkumar22119032@gmail.com
GHUB ▸ github.com/lokifergusion9
LNKD ▸ in/lokesh-kumar-1768262b9
INDEX
░▒▓ END OF FILE ▓▒░LOKESH KUMAR · MMXXVI