How RAG actually works, part 8: what this looks like in the real world
By Guus van de Wal · · AI · 4 min
The same three-step loop, five ways: support assistants, internal knowledge search, code assistants, legal search, and document Q&A.
Part 8 of 10 in How RAG actually works, a hands-on tour of vectors, embeddings and retrieval.
What this looks like in the real world
The same three-step loop shows up everywhere. The differences are all in the data, the chunking and the retrieval tuning.
Customer support assistant. Index your help centre, past resolved tickets, and product docs. A customer asks a question in their own words; the system retrieves the three most relevant articles and the LLM writes a tailored answer with links to sources. Metadata filtering scopes results to the customer's plan and product version so a free-tier user isn't told to click a button only enterprise accounts have. This is the highest-ROI RAG use case and where most teams start.
Internal knowledge search. Company wikis, Slack history, Google Drive, Confluence, the collective memory nobody can find in. New engineers ask "how do we handle refunds over 500 euros?" and get a synthesised answer citing the actual policy doc and the Slack thread where the exception was decided. The killer feature here is access control expressed as metadata filters: the retriever must never surface a document the asker isn't allowed to see.
Code and technical-docs assistant. Index a large codebase and its documentation so a developer can ask "where do we validate webhook signatures?" and get the relevant functions and the doc explaining them. Note that code has different chunking needs, splitting on function and class boundaries beats fixed-size windows, and it's a case where a code-specialised embedding model earns its cost.
Contract and legal search. Firms index thousands of contracts so a lawyer can ask "which of our agreements auto-renew without 60 days' notice?" and get the specific clauses across many documents. Here chunking is delicate (a clause severed from its definitions is dangerous), citations are non-negotiable, and reranking plus hybrid search matter because exact legal terms and their meaning both count.
Research and document Q&A. Point it at a folder of PDFs, papers, financial filings, medical literature, and ask questions across the whole set. The pattern that "chat with your documents" tools productise is exactly the loop from part 4, scaled up with a real vector store and better chunking.
Across all of these, the winners aren't the teams with the fanciest model. They're the teams that chunked thoughtfully, added good metadata, used hybrid search and reranking, and actually measured retrieval quality.