RAG in production: the boring parts that matter
Embeddings are the easy part. Chunking, permissions, evaluation and freshness are where retrieval systems succeed or quietly fail.

A retrieval-augmented assistant can be demoed in an afternoon. Making it trustworthy takes the rest of the project. These are the parts we budget for up front.
Chunk by meaning, not by character count
Split documents along their structure โ headings, sections, table rows โ and keep the title path with every chunk. A chunk that knows it's "Refund policy โบ EU customers โบ Digital goods" retrieves far better than 800 anonymous characters.
Permissions belong in the query
Filter by tenant and access level inside the vector query, never after it. Post-filtering leaks the existence of documents and silently starves results.
Hybrid search wins
Combine keyword (BM25) and vector search and re-rank the union. Product names, error codes and SKUs are exactly where pure embeddings struggle.
Evaluate like you mean it
Build a set of real questions with known good sources before you tune anything. Track retrieval recall and answer faithfulness on every change. Without this, every prompt tweak is a coin flip.
Cite, or don't answer
Show sources next to the answer and let the model say "I don't know". Users forgive gaps; they don't forgive confident fiction.
Keep it fresh
Ingestion is a pipeline, not a script: incremental re-indexing, deletes that actually delete, and an alert when a source stops updating.
None of this is glamorous. All of it is the difference between a demo and a product.




