8 210
Asked in DCB Bank AI Engineer interview 👇
A bank wants to deploy a GenAI-powered customer support chatbot.
But financial data cannot be sent to third-party AI providers due to regulatory requirements.
This was asked at DCB Bank in a GenAI interview.
"How would you architect the solution?"
The core constraint: No customer data leaves the bank's infrastructure. That rules out OpenAI, Gemini, Claude APIs directly.
The architecture:
1. On-prem or private cloud LLM
Deploy an open-source model (Llama 3, Mistral, Phi-3) on the bank's own servers or a private VPC. No data ever leaves the network.
2. Private vector store
Run a self-hosted vector DB (Weaviate, Qdrant, Milvus) inside the firewall. Embed and store customer FAQs, policy docs, and product info locally.
3. RAG pipeline — fully internal
User query → internal embedding model → private vector search → retrieved context + query → on-prem LLM → response. Zero external calls.
4. PII scrubbing layer
Strip account numbers, names, and sensitive fields before they reach even the internal LLM — defense in depth.
5. Audit logging
Every query and response logged internally for compliance. Full traceability without external exposure.
6. Guardrails
Rule-based filters to block out-of-scope topics (investments, legal advice). Fallback to human agent when confidence is low.
The answer is not "use ChatGPT" — it's building a fully sovereign AI stack inside the bank's walls.
25 лист, 12:49
