RAG
RAG: retrieval-augmented generation
Having the model answer from external sources: ingestion and indexing, how vector search works, retrieval quality, generation, evaluation and running it in production.
Project 03
Learning to build applications on large language models, in two topics: the harness, the part outside the model that lets it carry out tasks as an agent, and RAG, which has the model answer from external sources. Notes are filed by topic, and each starts from a concrete question.
This project has not started yet. For now, this page shows the plan and the structure future entries will follow.
Understand what problem each part of an agent and of RAG solves and how it works underneath, and check the key parts by writing them myself.
Write an agent loop without a framework, then plug a minimal RAG with citations into it as a tool.
How IVF, PQ and HNSW work and how their parameters trade recall for speed, measured with FAISS, then a simplified index written by hand.
Manage the context budget and caching; compare BM25, dense and hybrid retrieval with reranking.
Build an MCP server, a skill that loads on demand and a read-only subagent.
Block dangerous actions with a hook, run code in a sandbox, limit tools and skills by role and filter retrieval by permission.
Build per-user memory and resumable execution; compare chunking strategies and check citations.
Evaluate agents with pass@k and pass^k, export traces and make the RAG multi-tenant.
Notes are filed by topic; each new note goes under the topic it belongs to.
RAG
Having the model answer from external sources: ingestion and indexing, how vector search works, retrieval quality, generation, evaluation and running it in production.
Harness
Everything outside the model: the agent loop, context engineering, tools and MCP, skills, hooks, sandboxes, permissions, memory, durable execution, evaluation and observability.
The full study path for both topics, Harness and RAG: the order to learn them in, how deep to go on each point, common questions and sources.
Read the roadmapAs the project develops, I will add the questions, implementation notes, and test results from each stage here.