---
title: A product team wants the assistant to "know" 20,000 internal policy documents. How do you choose between prompting…
url: https://gurkanozkan.ai/learn/questions/applied-llm-rag-01/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-rag-01.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Easy
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-rag-01.json
robots: noindex
---

# A product team wants the assistant to "know" 20,000 internal policy documents. How do you choose between prompting, retrieval, long-context stuffing and fine-tuning — and when would you not use retrieval at all?

Applied LLM · Technical · Easy

Theme reported publicly: [Cohere](https://jobsbyculture.com/blog/cohere-interview-prep-2026), [OpenAI](https://www.aced.io/guides/openai-forward-deployed-engineer-interview), [Mistral AI](https://jobs.generalcatalyst.com/companies/mistral-ai-2/jobs/96602930-applied-ai-forward-deployed-machine-learning-engineer-london)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Start with requirements: corpus size/churn, citations, access control, latency/cost, error tolerance
- Prompting is the baseline; long context only for small bounded corpora that fit budget
- Retrieval for large, changing, permissioned knowledge that needs citations and freshness
- Fine-tuning changes behaviour/format/tone/latency, not a reliable way to inject facts
- Do not use retrieval when no external knowledge is needed, corpus is tiny/static, data is structured for SQL/tools, or retrieval quality cannot be made good enough
- Combine approaches: tuned retriever/reranker plus generator trained to use context
- Build and run an eval before choosing, then revisit as corpus and traffic change

### In full

I would start by defining the job: 20,000 documents is large enough that prompting alone is not a durable answer, but the right choice depends on churn, whether answers must cite sources, whether users have different permissions, latency/cost limits, and how wrong the system can be. My default for this case is retrieval over a permissioned index, with prompting as the baseline and long-context stuffing only if the relevant slice is small, stable, and fits the context/cost budget. Fine-tuning is for behaviour, format, tone, or latency—not for reliably injecting 20,000 facts—so I would not treat it as the knowledge store. I would not use retrieval when the task needs no external knowledge, the corpus is tiny and static, the data is better reached through SQL or tool calls, or retrieval quality cannot be made good enough for the error tolerance. I would also consider combinations: a fine-tuned retriever or reranker, plus a generator tuned to cite and use retrieved context, while keeping access control enforced before generation. Before choosing, I would build an eval set with real questions, expected sources, permission cases, and latency/cost measurements, then compare prompting, long context, retrieval, and fine-tuning against that evidence rather than intuition.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Starts from requirements: corpus size and churn, citation and access-control needs, latency/cost budget, error tolerance
- Retrieval for large, changing, permissioned knowledge that needs citations; fine-tuning for behaviour, format, tone or latency — not reliable fact injection; long context for small bounded corpora; prompting as the baseline
- Names cases where retrieval is wrong: no external knowledge needed, tiny static corpus, structured data better reached via SQL/tool calls, or retrieval quality that cannot be made good enough
- Combinations: fine-tuned retriever/reranker, generator tuned to use context
- Commits to building an eval before choosing

## Common mistakes

- Proposing fine-tuning to "teach the documents"
- defining RAG instead of discussing when it fails

## Topic guides

- [Building LLM applications](https://gurkanozkan.ai/learn/topics/llm-applications.md)
- [Fine-tuning, LoRA and distillation](https://gurkanozkan.ai/learn/topics/fine-tuning.md)
- [ML and LLM system design](https://gurkanozkan.ai/learn/topics/system-design.md)
- [Retrieval-augmented generation](https://gurkanozkan.ai/learn/topics/rag.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
