INDUSEURO

Why We Don't Use Off-the-Shelf RAG

September 15, 2025

When clients come to us with a RAG requirement, one of the first questions we get is: "Which framework are you using?" The honest answer — that we mostly do not use a RAG framework at all — typically surprises them. This article explains why.

What Off-the-Shelf RAG Does

Frameworks like LangChain, LlamaIndex, and Haystack are genuinely excellent tools. They abstract away a large amount of infrastructure work: document loading, text splitting, embedding, vector storage, query reformulation, retrieval, context assembly, and response generation. For a proof-of-concept, a prototype, or a low-stakes application, they are usually the right choice.

The problem is not that these frameworks are bad — it is that the abstractions they provide optimise for generality, and financial applications require specificity.

Where the Abstractions Break Down

Text chunking is not generic for financial documents

Off-the-shelf RAG pipelines use generic text chunking strategies: fixed-size chunks with overlapping windows, or semantic chunking based on sentence boundaries. Financial documents have structure that these strategies destroy.

A risk model description has sections that need to be retrieved together. A regulatory filing has cross-references where the meaning of a clause depends on its context within the document hierarchy. An ISDA agreement has defined terms that, when retrieved without their definitions, produce confidently wrong answers.

We build document-type-aware chunking for each document class in our clients' corpora. A trade confirmation is chunked differently from an IFRS 9 technical standard, which is chunked differently from an internal risk policy. The retrieval quality difference is significant — typically 15–30% improvement in answer relevance on domain evaluation sets.

Embedding models are not domain-calibrated out of the box

General-purpose embedding models (OpenAI's text-embedding models, sentence-transformers) are trained to capture semantic similarity across general text. Financial terminology has specific semantic relationships that general models do not capture well.

"Delta" in a financial risk context is not related to "delta" in the sense of change or Greek letters more broadly — it has a specific, technical meaning in options pricing. "Margin" in a trading context is fundamentally different from "margin" in a retail context. "Settlement" has precise temporal and operational meaning that general embeddings blur.

We evaluate embedding models against domain-specific benchmarks before selecting them for a given application. In several cases, a smaller domain-specific model outperforms a much larger general model for retrieval quality on financial text.

Retrieval strategies assume clean query-answer alignment

Standard RAG retrieval assumes a relatively direct relationship between the user's query and the relevant chunk. This assumption fails for many financial use cases:

  • A compliance analyst asking "does this trade breach our concentration limit?" needs retrieval to span multiple documents: the risk policy, the current position, and the calculation methodology — none of which individually answers the question
  • A regulatory reporting analyst asking "what is the reporting obligation for this instrument?" may need the system to identify the instrument type first, then retrieve the relevant reporting rules
  • Multi-hop retrieval — where answering a question requires chaining across multiple retrieved facts — is poorly supported by single-stage retrieval

We build retrieval pipelines that match the question topology. For financial applications, this typically means multi-stage retrieval with intermediate reasoning steps, not a single embedding lookup.

Observability and auditability are afterthoughts in most frameworks

In a regulated financial environment, you need to be able to answer: "Why did the system give that answer?" This requires full traceability from user query through retrieval decisions to context assembly to generation.

Most RAG frameworks do not produce audit-quality logs by default. You can add them, but adding auditability to an existing pipeline is much harder than designing for it from the start. When regulators or internal audit ask what the system retrieved, why it retrieved it, and what the model was given, "we used LangChain" is not a sufficient answer.

We build structured logging into every pipeline component from day one: every retrieval decision, every context assembly choice, every model call with its inputs and outputs, with full session traceability.

What We Build Instead

Our RAG pipelines are custom-built per application, sharing a common infrastructure layer but not a common abstraction. A typical pipeline includes:

Document processing pipeline: Type-aware document ingestion, structure-preserving parsing, entity extraction and resolution, PII scrubbing (see our PII architecture article), semantic chunking calibrated to document type.

Index layer: Typically a hybrid of vector search (for semantic retrieval) and keyword search (for precise term matching, especially for regulatory references and identifiers), with metadata filtering to scope retrieval to relevant document sets.

Query understanding layer: Query classification (what type of question is this?), entity extraction, query expansion for technical terms with known synonyms, and intent detection to route complex queries to appropriate retrieval strategies.

Multi-stage retrieval: For simple factual queries, single-stage retrieval is fine. For reasoning-intensive queries, we use iterative retrieval with intermediate steps: retrieve → reason → identify gaps → retrieve again.

Context assembly: Not just concatenation of top-K chunks. We deduplicate across retrieved passages, resolve cross-references, and order context for optimal model comprehension.

Generation layer: Model selection based on query type (not every query needs a frontier model), structured output schemas where outputs feed into downstream systems, confidence scoring where appropriate.

Audit layer: Structured logs at every stage, session tracing, retrievability of full context for any historical query.

The Trade-off

This approach is more expensive upfront than using a framework. A proof-of-concept with LangChain takes days. A production-grade custom pipeline takes weeks. For many use cases, the framework is absolutely the right choice.

The financial applications we work on are not those use cases. When the system's output informs a risk decision, a regulatory filing, or a client-facing recommendation, the reliability and auditability requirements justify the investment in a purpose-built pipeline.

The other factor is evolution. Framework-based pipelines are harder to extend when the retrieval strategy needs to change — and in our experience, the retrieval strategy always needs to change as the application matures. Custom pipelines are designed to be extended.

When to Use a Framework

We recommend RAG frameworks for:

  • Proof-of-concept development (always — use a framework to validate the concept before investing in custom build)
  • Internal knowledge bases with moderate reliability requirements
  • Applications where the domain is general and the user population is tolerant of occasional retrieval failures
  • Small teams with limited engineering bandwidth

We recommend custom builds for:

  • Applications where outputs inform regulated decisions
  • Domains with specific technical vocabulary that general embeddings handle poorly
  • Multi-document reasoning requirements
  • Any application that needs audit-quality traceability

We design and build production RAG systems for financial institutions across Europe. If you are evaluating how to approach a retrieval-based AI system, let's talk.