Skip to content
AI Foundations for Bankers
0%

Internal Policy Q&A Assistant

intermediate15 min readUpdated reference-architectureragcompliancepolicy-searchvector-database
Jump to a section

Overview

Every bank maintains hundreds -- often thousands -- of internal policy documents. Compliance manuals, credit policies, operational procedures, HR handbooks, and board-approved risk limits. When an employee needs to find a specific policy, they face a familiar frustration: searching through SharePoint folders, sifting through outdated documents, and hoping the search terms they chose match the language the policy author used.

A Retrieval-Augmented Generation (RAG) powered Q&A assistant transforms this experience. Instead of keyword-based search, employees ask natural language questions -- "What is our current commercial real estate concentration limit?" or "What are the approval requirements for a new third-party vendor?" -- and receive accurate, sourced answers with citations back to the authoritative document.

This architecture is the most common first AI deployment in banking because it delivers immediate, visible value with manageable risk. The system does not make decisions -- it retrieves and summarizes existing policies. Human judgment remains the final authority.

Increasingly, the largest banks get policy Q&A inside an enterprise assistant they buy rather than a standalone system they build. Barclays' Colleague AI Agent, part of its Microsoft 365 Copilot rollout to 100,000 colleagues, answers policy-compliance and HR questions; Wells Fargo's rollout of Google's agent platform is aimed partly at helping staff find their way through policies and procedures. Either way, the architecture underneath is the same.

BANKING ANALOGY

Think of a policy Q&A assistant the way you think about your best compliance analyst -- the one who has read every policy document and can tell you exactly where to find the answer to any regulatory question. They do not invent answers; they retrieve the relevant section, quote it, and tell you which document and page it came from. A RAG system works the same way: it finds the most relevant passages from your actual policy documents and generates an answer grounded in those sources, with citations you can verify.

Architecture Components

Raw docsEmbeddingsSimilar chunksContextAnswer

Swipe sideways to see the whole diagram

Click or use arrow keys to explore

Document Ingestion Pipeline

The ingestion pipeline converts raw policy documents -- PDFs, Word files, SharePoint pages, Confluence articles -- into formats the AI system can search. This involves document parsing (extracting text from various formats), metadata extraction (document title, version, effective date, owner), and format normalization.

Tools to evaluate: Apache Tika for multi-format parsing, LlamaIndex data connectors for SharePoint and Confluence integration, or managed solutions like Amazon Textract for OCR on scanned documents. A newer generation of generative AI document parsers -- Amazon Bedrock Data Automation and Azure Content Understanding -- reads complex layouts such as tables and forms and feeds the results straight into a RAG pipeline.

Chunking Engine

Raw documents must be split into smaller segments before embedding generation. Chunking strategy directly affects retrieval quality -- chunks that are too large dilute relevance; chunks that are too small lose context.

For banking policy documents, semantic chunking (splitting on section boundaries and natural paragraph breaks) outperforms fixed-size chunking. Policy documents have clear hierarchical structures -- chapters, sections, subsections -- and preserving these boundaries produces more coherent retrieval results.

Vector Store

The vector store holds the embedded chunks and enables fast similarity search. For banking deployments, the key evaluation criteria are: data residency (where vectors are stored), access control (can you restrict which users see which document vectors?), and scale (how many documents and how fast?).

Options range from managed cloud services (Pinecone, Weaviate Cloud) to self-hosted solutions (pgvector on your existing PostgreSQL, Milvus) to platform-integrated options (Snowflake Cortex Search, Bedrock Knowledge Bases).

LLM Generation Layer

The LLM receives the user's question along with retrieved document chunks and generates a synthesized answer. The system prompt instructs the model to base answers strictly on the provided context, cite specific documents, and clearly state when insufficient information is available to answer.

Model selection balances accuracy, latency, and cost. For internal policy Q&A -- where accuracy is paramount but latency tolerance is moderate (2-5 seconds is acceptable) -- a current frontier model (for example from OpenAI, Anthropic or Google) typically outperforms smaller models on complex policy questions.

Citation and Source Tracking

Every answer must include citations to the specific document, section, and version that supports it. This is non-negotiable in banking -- an unsourced policy answer is worse than no answer at all, because it creates false confidence.

The citation system tracks which retrieved chunks contributed to the answer and maps them back to source documents with direct links to the original content.

Evaluation and Monitoring

A sixth component sits alongside the others: a standing "golden set" of SME-written questions with known correct answers and sources. The set is rerun every time a policy document, the model, or the system prompt changes, scored automatically (often by a second model acting as a judge) and sampled by SMEs. Cloud platforms now build this in -- Amazon Bedrock evaluations, for example, score retrieval quality and answer correctness against expected answers. Think of it as back-testing for the Q&A system: you would not change a credit model without re-running its tests, and the same discipline applies here.

Data Flow

  1. Document ingestion: Policy documents are loaded from source systems (SharePoint, network drives, compliance databases), parsed into text, and tagged with metadata (document ID, version, effective date, classification level)

  2. Chunking and embedding: Documents are split into semantically meaningful chunks (500-1000 tokens each with 100-token overlap), and each chunk is converted into a vector embedding using an embedding model such as OpenAI text-embedding-3 or Cohere Embed

  3. Vector indexing: Embeddings are stored in the vector database alongside the original text chunks and metadata, creating a searchable index of the entire policy corpus

  4. User query: An employee submits a natural language question through the Q&A interface -- for example, "What are the documentation requirements for a commercial loan over $5M?"

  5. Retrieval: The query is embedded using the same embedding model, and the vector store returns the top-k most semantically similar chunks (typically 5-10 chunks)

  6. Context assembly: Retrieved chunks are assembled into a context window, ordered by relevance, and combined with the system prompt instructing the model to answer based only on provided context

  7. Answer generation: The LLM generates a synthesized answer, citing specific documents and sections, with confidence indicators for each claim

  8. Source verification: The system presents the answer alongside clickable links to the source documents, enabling the user to verify every claim against the original policy text

Banking Use Case

Scenario: A compliance officer at a regional bank receives a question from the commercial lending team: "What is our current policy on commercial real estate concentration limits, and has it changed since the last board review?"

Without the Q&A assistant: The compliance officer opens SharePoint, searches for "CRE concentration" across multiple policy folders, finds three versions of the concentration risk policy (two outdated), cross-references with the most recent board minutes, and drafts a response. This takes 45-90 minutes.

With the Q&A assistant: The compliance officer types the question. The system retrieves the current Concentration Risk Policy (v4.2, effective January 2026), the relevant board resolution from the December 2025 meeting, and the related OCC guidance. Within seconds, it presents: "The current CRE concentration limit is 300% of total risk-based capital, as established in Concentration Risk Policy v4.2 (Section 3.2). This represents a reduction from the previous 350% limit, approved by the Board in Resolution 2025-47 on December 15, 2025." Each citation links directly to the source document.

Tip

When implementing a policy Q&A assistant, start with a single high-value document collection -- such as credit policies or compliance manuals -- rather than ingesting everything at once. This allows you to tune chunking strategy, embedding models, and retrieval parameters for your specific content before scaling to the full policy corpus. Measure retrieval accuracy rigorously: randomly sample 50 questions, have subject matter experts evaluate the answers, and iterate until accuracy exceeds 90% before expanding the document scope. Then keep those questions as your golden set and rerun them on every change, so accuracy is monitored continuously rather than checked once at launch.

Key Architectural Decisions

DecisionOptionsRecommendationWhy
Hallucination mitigationPrompt engineering only; RAG + citation enforcement; RAG + citation + confidence scoringRAG + citation + confidence scoringBanking policy answers must be verifiable. Confidence scoring flags low-confidence answers for human review rather than presenting uncertain information as fact
Vector database deploymentManaged cloud (Pinecone); self-hosted (pgvector); platform-integrated (Bedrock KB)Platform-integrated if available; otherwise pgvectorMinimizes data movement and leverages existing infrastructure. pgvector runs on PostgreSQL your team already manages
Embedding modelOpenAI text-embedding-3; Cohere Embed; domain-specific fine-tunedStart with OpenAI or Cohere; evaluate fine-tuned if accuracy plateausGeneral-purpose embeddings perform well for policy language. Fine-tuning is expensive and only justified if retrieval accuracy is consistently below 85%
Access controlDocument-level filtering; user-role-based retrieval; no filteringUser-role-based retrievalDifferent employees should only access policies relevant to their role. A teller should not see board-level risk appetite documents through the Q&A system

Quick Recap

  • A RAG-powered policy Q&A assistant transforms keyword search into natural language question-answering with sourced, cited answers
  • The architecture consists of five layers -- document ingestion, chunking, vector storage, LLM generation, and citation tracking -- plus continuous evaluation against a golden set of questions
  • Banking-specific requirements include data residency, role-based access control, citation enforcement, and confidence scoring
  • Start with a single document collection, measure retrieval accuracy before scaling, and rerun the golden set on every document, model, or prompt change
  • This is the most common first AI deployment in banking because it delivers value without making autonomous decisions

KNOWLEDGE CHECK

Why is citation tracking considered non-negotiable in a banking policy Q&A system?

What chunking strategy is recommended for banking policy documents and why?

A bank is deploying its first policy Q&A assistant. What approach does the architecture recommend?

A bank keeps a golden set of policy questions with expected answers and sources. When should it rerun that test set?