โ† Journal
AIEngineeringNov 13, 20261 min read

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.

RAG in production: the boring parts that matter

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.

Vu Nguyen Tuan

Written by

Vu Nguyen Tuan

Vu leads the Forge and Temper phases: architecture, the weekly demo cadence and the production baseline โ€” CI/CD, tests and observability โ€” that every build starts with.

Follow on LinkedIn

Keep reading

More notes.