Topic 4 of 5 · 5 min read
Choosing a knowledge strategy for a product
Goal: Write a one-page architecture decision for a knowledge feature that names the chosen approach, the rejected options and the measure that would change the decision.
Pick the simplest approach that meets your accuracy, freshness, access and cost needs, write down why the others lost, and name the number that would make you revisit it. The goal is a one-page decision a colleague can challenge, not a diagram of everything you could build.
Check yourself · 1 of 3
What belongs in the review-trigger line of an architecture decision?
Why it matters
Knowledge features drift into the most complicated option by default: a vector database "because RAG". Each extra part adds failure modes you must test, monitor and pay for. A written decision keeps the design honest and tells the next engineer when to change it.
The decision path
Work through these in order and stop at the first approach that fits.
- Is a plain prompt enough? If the model already knows the topic and nothing is private or fresh, prompt it and measure.
- Is the data a live record or an exact value? Use a tool: API, SQL or an MCP server.
- Does the corpus fit in the window, with a low enough query volume or a usable cache? Load it whole.
- Is the corpus large, growing, or queried heavily? Use retrieval.
- Is the problem the model's behaviour, not its knowledge? Add examples, then consider fine-tuning, on top of the above.
Then check four constraints that can override the path: citations (retrieval and tools can show sources), access rules (per-user permissions must reach the data layer), update rate (how soon a change must show up), and budget (cost per query at expected volume).
A one-page decision record
## Decision: Answers over the HR policy set
Context: 2,300 pages, updated monthly, 800 queries/day, citations required.
Chosen: Retrieval over policy index, top 6 chunks, cite page and section.
Rejected: Full context (about 1.5M tokens, too large and costly per call);
fine-tuning (cannot cite, retrain on every policy change).
Tool use: get_leave_balance(employee_id) for personal data.
Review trigger: if retrieval hit rate on our 120-question test set drops
below 85%, or the corpus fits in one cached prompt, revisit.
The review trigger is the useful line. It says what evidence would change the decision. Without it, the architecture is never questioned until it fails.
What goes wrong
- Starting from the tool. "We need a vector database" is a solution looking for a problem.
- Ignoring access rules. A shared index with no per-user filtering shows one employee another's data.
- No test set. Without 50 to 150 real questions with known answers, no option can be compared.
- Never revisiting. Windows, prices and your corpus all change. A decision with no review trigger goes stale.
Examples
Internal wiki assistant
Corpus: 40,000 tokens of onboarding docs, 30 questions a day. Decision: full context with caching, no index. Rejected: retrieval, because the engineering cost outweighs a few cents a day. Review trigger: corpus above 300,000 tokens or traffic above 1,000 questions a day.
Customer support copilot
Help articles go in an index with permission tags. Order data comes from a read-only tool that runs as the signed-in agent. Replies follow a house format given as examples in the prompt. Three parts, each chosen for a different need.
Key points
- Choose the simplest approach that meets accuracy, freshness, access, citation and cost needs.
- Work through the path in order: plain prompt, live tool, full context, retrieval, then behaviour tuning on top.
- Access rules and citation needs can rule out an option regardless of how well it scores on accuracy.
- A decision record names the chosen approach, the rejected ones with reasons, and a review trigger.
- You need a test set of real questions to compare options; without one the decision is an opinion.
Common mistakes
- Selecting retrieval first and justifying it afterwards.
- Leaving out the rejected options and the reason each lost.
- Writing no measure that would change the decision.
- Choosing a design without a test set of real questions.
Check yourself · 2 of 3
A product needs answers with citations from 5 million tokens of documents that change weekly. Which fits best?
Check yourself · 3 of 3
Why must a shared knowledge index carry access rules?
Practice items, not counted towards your mastery.
Start here
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (opens in a new tab)PaperFree
The paper that named RAG: a model that reads retrieved passages instead of relying on memory alone.
- Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach (opens in a new tab)PaperFree
Measures long context against RAG on the same tasks and shows the cost gap that a hybrid router exploits.
- Optimizing LLM accuracy (OpenAI) (opens in a new tab)DocsFree
Frames the choice as context problems versus behaviour problems: RAG for the first, fine-tuning for the second.