Multi-Tenant RAG: Isolating Customer Data in a Shared Index
A metadata filter that's easy to forget in one code path is a data leak waiting to happen. Multi-tenant RAG isolation needs to be structural, not a convention.
A metadata filter that's easy to forget in one code path is a data leak waiting to happen. Multi-tenant RAG isolation needs to be structural, not a convention.
Redacting PII at generation time is too late — it's already been embedded, indexed, and potentially logged. Redaction belongs at ingestion.
A vector index has no inherent concept of who's allowed to see a document. Retrieval-time access control has to be enforced explicitly, or it doesn't exist.
Shipping RAG without evaluation means you find out it's broken from angry users. Here's how to measure retrieval quality and answer faithfulness before that happens.
A working list of every distinct way a RAG pipeline has failed in production, organized by which stage caused it — closing out this stretch of RAG-architecture posts.
A wrong answer can come from bad retrieval or bad generation, and end-to-end evaluation can't always tell you which. Evaluate retrieval on its own first.
LLM generation cost is the number everyone tracks. It's rarely the biggest line item once you account for indexing, storage, and reranking at real query volume.
A character-count chunker will happily split a function in half. Code needs structure-aware chunking that respects syntax boundaries, not prose conventions.
A RAG index doesn't know a document is outdated unless something tells it. Here's how to build that signal in, instead of discovering staleness from a user complaint.
Logging the question and the answer tells you a RAG pipeline ran. It doesn't tell you why a specific answer was wrong. Here's what to log to actually debug retrieval quality over time.