In enterprise AI, the model is the least differentiated part of the system. Every organisation can access comparable models; what differs is what those models are given to read. Answer quality is therefore mostly a retrieval problem, and teams that respond to disappointing results by choosing a larger model are usually fixing the wrong component.

This article is about the component that actually determines the outcome.

Why does context beat model choice?

Because a model cannot know your organisation's specifics. It has never seen your credit policy, your product catalogue, last quarter's numbers or the procedure your operations team follows. Asked a question about any of them without context, it produces a fluent, plausible and unfounded answer — not because it is defective, but because it is doing the only thing it can.

Give it the right document and the same model answers correctly. Give it a superseded version and it answers confidently wrong. Give it fifty marginally relevant chunks and it answers vaguely, because the signal is buried.

The practical consequence is a reordering of priorities. Effort spent on retrieval quality — what is indexed, how it is chunked, what metadata it carries, how it is filtered — returns considerably more than the equivalent effort spent on model selection. That is fortunate, because retrieval is the part you control.

There is a second reason this ordering matters here specifically. In an on-premise deployment, model capacity is a fixed cost you have already paid; retrieval improvement is engineering effort against a system you already own. The cost structure is set out in deploying LLMs on-premise.

What is the difference between training, fine-tuning and grounding?

Three mechanisms that get conflated in requirements discussions, with very different properties.

Training builds a model from scratch on a large corpus. Not something enterprises do, and not something they should consider.

Fine-tuning adjusts an existing model's weights on your data. It is effective for teaching form — a house style, a response format, a domain vocabulary, a classification task with consistent structure. It is a poor mechanism for teaching facts, for three reasons: the facts change and the weights do not, you cannot cite the source of an answer, and removing a fact means retraining. That last point is a compliance problem as well as an engineering one — an erasure request against a fine-tuned model is not a delete operation.

Grounding, or retrieval-augmented generation, retrieves relevant content at query time and provides it as context. Facts stay in documents, so they update when the documents update, answers can cite their sources, and deleting a document removes it from the system's knowledge.

For enterprise use the default is grounding, with fine-tuning reserved for form rather than fact. The compliance dimension of that choice — that grounding processes data while training embeds it — is developed in data residency and personal data law in Azerbaijan.

What determines retrieval quality?

Six factors, roughly in order of how much they matter in practice.

What is in the corpus. Retrieval cannot find what was never indexed. The most common cause of a disappointing assistant is a corpus that omits the documents people actually need — because they live in someone's mailbox, a shared drive nobody catalogued, or a system that was out of scope.

Whether the corpus is current. A superseded procedure indexed alongside the current one produces confident wrong answers. Version and effective-date metadata that retrieval can filter on is the control, and it is the single highest-value metadata field in an enterprise corpus.

Chunking strategy. Splitting a document into retrievable units decides what can be retrieved together. Fixed-size chunking cuts across clauses and sections; structure-aware chunking that respects document organisation performs materially better on the contracts, procedures and regulations enterprises actually hold.

Metadata and filtering. Effective retrieval is similarity search constrained by metadata — this department, this document type, current only, this user's entitlements. Pure similarity search over an entire corpus is the naive implementation and it degrades as the corpus grows.

Hybrid search. Combining semantic similarity with keyword matching. Pure vector search misses exact identifiers, product codes and rare terms; pure keyword search misses paraphrase. Enterprise corpora need both, and hybrid retrieval is usually a larger quality improvement than any model change.

Reranking. A second-stage model reorders candidates for relevance before they enter the context. Cheap relative to its effect, because it lets you retrieve broadly and present narrowly.

How do you evaluate retrieval rather than the model?

The discipline that separates systems that improve from systems that are argued about.

Build a question set from real questions. A hundred questions people actually ask, with the correct source document identified for each. This is a week of work with a domain expert and it is the foundation of every subsequent decision.

Measure retrieval separately from generation. For each question: was the correct document in the retrieved set, and at what rank. This isolates the failure. If the right document was never retrieved, no model change will help; if it was retrieved and the answer was still wrong, the problem is prompting or the model.

Track the metric over time, not once. Retrieval quality drifts as the corpus changes. A monthly run against the fixed question set is the earliest warning that something upstream has moved.

Evaluate per language. Retrieval quality is not uniform across Azerbaijani, English and Russian, and an evaluation set that is only in English is measuring the easiest case.

The reason to insist on this: without it, quality discussions become anecdotal. One person's bad experience drives a model change that nobody can evaluate, and the system does not converge.

Why do answers go wrong even when retrieval works?

Five failure modes worth recognising individually, because they have different fixes.

Context dilution. Too many chunks retrieved, and the relevant one is surrounded by marginally related text. More context is not better; precision is better. Retrieve broadly, rerank, present narrowly.

Conflicting sources. Two documents disagree — usually because one is superseded, sometimes because two departments genuinely define a term differently. The model picks one, and it may pick badly. The fix is upstream: version handling for the first case, and a governed business glossary with an authoritative definition for the second, which is why contested definitions need a forum that resolves them.

Lost instructions. In a long conversation or a large retrieval set, earlier instructions get truncated or outweighed. Instruction placement and explicit context budgets are the mitigation.

Over-generalisation. The model answers from general knowledge when retrieval returned nothing useful, instead of saying it does not know. Both a prompting matter and a system design matter: the correct behaviour when retrieval fails is to say so, and it has to be specified.

Missing citation. The answer is right and unverifiable. In an enterprise setting a correct answer without a source is only half a result, because the user cannot check it and the audit trail cannot explain it — a requirement that also appears in what the ISO/IEC 42001 audit asks for.

What about Azerbaijani-language content?

A genuine engineering constraint rather than a footnote, and one that is usually discovered after a pilot underperforms.

Embedding quality varies by language. Azerbaijani is far less represented in general-purpose embedding models than English or Russian. The same retrieval architecture that performs well on an English corpus can perform noticeably worse on an Azerbaijani one, and the difference is invisible unless it is measured.

Mixed-language corpora are normal here. An organisation's authoritative policy may be in Azerbaijani, its technical documentation in English, and its legacy operational procedures in Russian. A user asking in one language needs content retrieved from all three.

Query expansion through the glossary helps materially. Expanding a user's term into its equivalents in the other two languages before retrieval runs is a cheap, effective intervention — and it works only if the glossary maintains those equivalences, which is the trilingual metadata problem.

Answer in the question's language, cite in the source's. The user needs to know the source was in English if it was, so that they can verify it.

Test with real Azerbaijani queries, including without diacritics. Users type musteri for müştəri roughly half the time, and a retrieval layer that does not fold diacritics will miss those queries entirely.

What does an improvement cycle look like?

The loop that produces steady improvement rather than argument.

Collect failures with their context. Every reported bad answer captured with the question, the retrieved chunks and the output. Without the retrieved context, a failure report is not actionable.

Classify by failure mode. Not retrieved, retrieved but ranked low, retrieved and diluted, conflicting sources, or a genuine generation error. The distribution tells you what to fix.

Fix the dominant mode. Usually corpus coverage first, then chunking, then hybrid search, then reranking, then prompting. Model change comes last, and rarely turns out to be the answer.

Re-run the evaluation set. Confirm the fix improved the metric rather than moving the problem.

Repeat monthly. Retrieval quality is not a launch task; it is an operating discipline, and it belongs to a named owner in the same way a data quality queue does.

Key points

  • The model is the least differentiated component. Answer quality is mostly retrieval quality.
  • Use grounding for facts and fine-tuning only for form. Facts in weights cannot be updated, cited or deleted.
  • Retrieval quality is determined by corpus coverage, currency, chunking, metadata filtering, hybrid search and reranking — roughly in that order of impact.
  • Build an evaluation set of a hundred real questions with known correct sources, and measure retrieval separately from generation.
  • Evaluate per language. An English-only evaluation set measures the easiest case.
  • Distinguish the five post-retrieval failure modes; dilution, conflicting sources and missing citation have different fixes from model quality.
  • Azerbaijani embedding quality lags English and Russian. Expand queries through the glossary and fold diacritics in the index.
  • Run a monthly improvement cycle with a named owner. Model change is the last resort, not the first.

Yukon Labs builds retrieval on governed foundations — OvalEdge for classification and glossary, Starburst for governed access to structured data, and HAVAA as the orchestration and retrieval layer, deployed on-premise. For the platform beneath it, see lakehouse architecture for enterprise AI and RAG; for the surrounding components, AI orchestration architecture.