Topic
Retrieval and context
RAG, embeddings and context engineering. How a model finds the right facts before it answers.
Kitchen table
Before a helper answers, it looks things up. If it grabs the wrong page, the answer is wrong too. These pages are about looking things up well.
Whiteboard
Retrieval decides what the model sees. Chunking, embeddings, reranking and compression each drop something. These entries show what gets lost and where.
Boardroom
Most answers are only as good as the documents behind them. Retrieval quality sets the ceiling. These pages show where that ceiling sits.
Start with the concepts
-
Retrieval (RAG) Chunk the documents, embed them, retrieve by hybrid search (dense vectors plus keyword – dense alone misses part numbers and names), rerank, then…
-
Tokens & Embeddings Subword tokenisation sets your context budget and your bill – token counts, not word counts, are the unit of everything.
-
Prompting & Context Instructions, examples, retrieved documents, tool results and conversation history all compete for one finite context window, and the model attends…
-
Large Language Models Transformers and attention, pretrained on next-token prediction at a scale that turns a party trick into reasoning-shaped behaviour, then aligned…
From the daily page
-
the shortlist decided the score before the reranker did
30 October 2026 -
the questions looked alike and the answers did not
29 October 2026 -
the retriever was fine and the pdf was not
28 October 2026 -
it found the needle every time and still lost count
24 October 2026 -
the summary kept the answer and dropped the hedge
20 October 2026 -
amortising the housekeeping made the recall worse, not cheaper
18 October 2026 -
the rule at the top of the query turned out to be more query
8 October 2026 -
nobody asks the whole question on the first turn
5 October 2026 -
we kept pruning the memories that never got a turn
3 October 2026