Case study · Banking AI

Giving KYC analysts cited answers from policy, without giving up control

Onboarding analysts were searching hundreds of policy pages and past case notes for every decision. The goal was an assistant that answers from approved sources only, shows its citations, respects who is allowed to see what, and is measured against questions compliance has signed off.

Case studyBanking · Retail and corporate onboardingSumanta Mukhopadhyay8 min read
#ai#llm#governance#security#regulation
CASE STUDY · CASE STUDY · BANKING AI28 Oct 2026 · 01:20 GST
At a glance
SectorBanking · Retail and corporate onboarding
My roleAI architect
EngagementArchitecture, build and hand-off
ScopeRetrieval, access control, evaluation, audit, rollout
What changed
  • Analysts get answers that cite the exact policy clause or case note they came from
  • Retrieval respects existing entitlements, so the assistant never shows what a user could not already open
  • An evaluation set owned by compliance gates every prompt, model and index change
  • A full audit trail of questions, sources and answers for second-line review
Hybrid searchVector indexRAGRe-rankingSSO and entitlementsEvaluation harnessOpenTelemetryAudit log

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A bank's onboarding analysts spent much of each case looking things up. Policy lived across hundreds of pages of procedures, risk appetite statements and local addenda, and the most useful guidance was often in past case notes: how a similar ownership structure or jurisdiction had been handled before. Senior analysts carried that knowledge in their heads; newer analysts asked them, or searched a document portal that matched keywords and returned whole documents.

Customer due diligence obligations come from the FATF Recommendations and their national implementations, which require institutions to identify and verify customers and beneficial owners1. None of that changes because an assistant exists. The aim was narrower and more useful: help analysts find the right rule and the right precedent faster, with the evidence in front of them.

What had to be true

  • Answers come from approved sources only, and every answer cites them.
  • Entitlements are enforced at retrieval: a user only ever sees passages they could already open in the source system.
  • The analyst decides. The assistant informs a decision; it never records one.
  • Quality is measured before release, against questions compliance agrees are representative.
  • Everything is auditable: question, retrieved sources, model version and answer.

Architecture

The pattern is retrieval-augmented generation: a retriever selects relevant passages and a generator answers conditioned on them, which keeps knowledge in an index that can be updated without retraining2. The work was in making each layer governable.

Sources
Policy libraryapproved versionsProceduresby business lineCase notesclosed casesRegulatory guidancecurated
Index
Chunkingclause-awareHybrid indexkeyword + vectorACL metadataper chunk
Retrieve
SSO identitygroups, regionEntitlement filterbefore rankingRe-rankertop passages
Answer
Grounded promptcite or declineLLMpinned versionCitation checkclaims to sources
Assure
Evaluation setcompliance-ownedAudit logimmutableTracesOpenTelemetry
Layered architecture: entitlements travel with every chunk, and nothing ships without passing the evaluation set.

The data flow, end to end

  1. IngestOnly published policy versions and closed case notes, with owner and effective date
  2. IndexSplit on clause boundaries; attach source permissions to every chunk
  3. RetrieveFilter by the analyst's entitlements, then hybrid search and re-rank
  4. AnswerGenerate only from retrieved passages, or say the sources do not cover it
  5. CiteLink each statement to a clause or case; flag unsupported sentences
  6. LearnAnalyst feedback becomes candidate evaluation cases for compliance review
The assistant declines rather than guesses when the retrieved sources do not answer the question.

Hybrid retrieval mattered because KYC questions mix exact terms (a form name, a jurisdiction, a document type) with paraphrase. Keyword search finds the former and vectors the latter. The detail is in hybrid search for RAG and choosing embedding models.

The hard part: permissions that survive retrieval

The tempting shortcut is one index for everyone and an instruction to the model not to reveal restricted material. That is not access control. OWASP's Top 10 for LLM applications lists sensitive information disclosure and vector and embedding weaknesses as distinct risks for exactly this kind of system3. The approach was:

  • Carry the source system's permissions onto every chunk at index time, and re-sync them when they change.
  • Apply the entitlement filter inside the retrieval query, so restricted passages are never ranked, let alone sent to the model.
  • Treat case notes as more sensitive than policy by default, with access scoped by business line and region.
  • Test it: evaluation cases that ask, as a restricted user, for content they should not see, and fail the release if anything leaks.

The same thinking applies to retrieved text as untrusted input; see prompt injection defence.

If a user could not open the document, the model should never read it on their behalf. Enforce that in the query, not the prompt.

How it ran

Analyst
  1. Asks in plain language
  2. Checks cited clauses
  3. Records own decision
Assistant
  1. Filters by entitlement
  2. Retrieves and answers
  3. Logs sources and version
Compliance
  1. Owns the evaluation set
  2. Approves releases
  3. Samples the audit log
The analyst stays the decision-maker; compliance owns the definition of "good enough".
Phase 1Frame
  • Top analyst questions
  • Source inventory and owners
  • Risk and control mapping
Phase 2Evaluate first
  • Evaluation set drafted
  • Compliance sign-off
  • Baseline retrieval quality
Phase 3Build
  • Entitlement-aware index
  • Citation checking
  • Audit and tracing
Phase 4Pilot and hand off
  • One team, then more
  • Feedback loop into evals
  • Runbooks and ownership
The evaluation set came before the build, so every later change had a fixed bar to clear.

Framing the work against the NIST AI RMF's govern, map, measure and manage functions gave risk and compliance teams a familiar structure for their review4. The release checklist followed RAG to production, and the evaluation design followed evaluation sets that predict production.

Key decisions and trade-offs

DecisionAlternativeWhy
Entitlement filter in the retrieval queryPrompt-level instructionsRestricted content never reaches the model; testable
Hybrid keyword and vector searchVector-only retrievalKYC questions mix exact terms with paraphrase
Cite or declineBest-effort answersAn uncited answer is not usable as evidence
Compliance-owned evaluation setEngineering-owned benchmarksThe people accountable for the outcome define the bar
Pinned model versionsAlways-latest modelChanges are deliberate, evaluated and logged

What I'd do again, and differently

Again: write the evaluation set before the first prompt, and put entitlements in the data path from day one. Differently: start the source clean-up sooner. Superseded policy versions and inconsistent case notes caused more wrong answers than the model did, and fixing content is slower than fixing code.

If you are weighing something similar, the AI architect page describes how I run these engagements, or analyse your challenge and bring the result to a call.

References
  1. 1
    The FATF RecommendationsFinancial Action Task Force
  2. 2
  3. 3
    OWASP Top 10 for LLM ApplicationsOWASP GenAI Security Project
  4. 4
FAQ

Common questions

Can a RAG assistant make KYC decisions?

It should not. In this design the assistant retrieves and cites policy and precedent; the analyst makes and records the decision, and the assistant's output is evidence in the file, not the decision itself.

How do you stop the assistant showing documents a user is not allowed to see?

Filter at retrieval time using the same entitlements as the source systems, before anything reaches the model. Prompt instructions alone are not an access control.

How do you know the assistant is good enough to release?

Build an evaluation set of real analyst questions with expected sources and answers, have compliance sign it off, and require every change to pass it before release.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.