Tenant isolation in a vector database is an authorisation decision, not a filter
A tenant filter is one forgotten line away from a breach. How to choose vector isolation by what a bug would expose, and prove it holds.
Topic
The infrastructure underneath AI features: retrieval, vector stores, caching, sharding and latency budgets. Each piece works through the arithmetic and the failure modes before the tooling.
A tenant filter is one forgotten line away from a breach. How to choose vector isolation by what a bug would expose, and prove it holds.
Most LLM products rate-limit requests. The provider meters tokens, by its own rule, across every tenant. Limit what it counts, or your users pay.
Retries suit cheap calls. With an LLM downstream, each attempt is a purchase. How to budget retries in money and time, and who should own the number.
pgvector or a dedicated vector store? A practitioner's method: build the latency budget first, size the index honestly, then let the numbers choose.
Most RAG failures are retrieval failures. A practical playbook for retrieval evaluation: golden sets, recall@k, chunking tests and drift monitoring.
A better embedding model is only an upgrade if you can install it. The sizing, dual-write and cutover plan for re-indexing 10M+ vectors with no downtime.
Most Redis sharding goes wrong before the first shard exists. Diagnose the real ceiling, design keys around hash slots, and reshard without a p99 spike.