In most of the design reviews I have sat in, tenant isolation for a vector index was settled as a performance question. One index or many? How fast is a filtered query at our size? Can the store hold this many namespaces? Those are fair questions, and an earlier article on choosing a vector store spent most of its length on them. It ended on a sentence I want to pick up: an isolation requirement that a filter clause alone does not satisfy to an auditor.
My position is this. Tenant isolation in a shared vector index is an authorisation decision, not a retrieval setting. The level of isolation should be chosen tenant by tenant, by what the contract promises about deletion, data location and audit, not by latency. And whatever level you choose, the tenant scope has to come from the authenticated identity in one place, and you have to prove at every release that it holds.
The view I am arguing against
The common view deserves a fair statement, because most of it is right. Put every tenant in one collection, tag each vector with a tenant identifier, filter on it at query time. The vendors recommend it: Qdrant's own guidance says a collection per tenant "is rarely the most efficient approach". It is the cheapest option, it scales to millions of tenants, and an index per tenant falls over long before you reach the scale of an education platform with tens of thousands of institutions. At that scale you do not have a choice.
I agree with almost all of that. For most small tenants a filter on a shared index is the right answer. Where I part company is the step that usually follows: having chosen the filter for good performance reasons, the team treats the filter as the security boundary, writes it into the query builder of whichever service needs retrieval, and moves on.
What a filter actually is
A metadata filter is a clause the caller writes. Every path that reaches the store is a place where it can be written wrongly or not at all: the new service that calls the store directly because the shared client was inconvenient, the nightly job that summarises documents, the evaluation script that samples production queries, the support tool an engineer built to search the index during an incident. None of these is exotic. They are the normal growth of a retrieval system in its second year.
Retrieval-augmented generation makes the failure worse in a specific way. When a database query returns another customer's row, the wrong row is visible: it has the wrong name on it. When a retrieval query returns another school's fee policy, the model paraphrases it into a fluent, confident answer, and nothing on the screen looks wrong. The leak arrives looking like a good result. The OWASP Top 10 for LLM applications lists this under vector and embedding weaknesses, warns of context leakage between users in shared vector databases, and recommends "permission-aware vector and embedding stores". The word that matters there is permission.
The isolation ladder
The stores document a ladder of options, and it is worth reading their own words, because they are more candid than the common view.
- Filter on a shared index. Qdrant partitions by a payload field, and since version 1.11 an
is_tenantflag on that field's index stores each tenant's vectors together so a scoped query reads them sequentially. That is a performance feature. It is still a filter the caller supplies. - Partition key. Milvus documents four levels of multi-tenancy, from a database per tenant (64 by default) through a collection per tenant (65,536 by default) and a partition per tenant (up to 1,024 per collection) to a partition key that supports millions of tenants. Of the partition key, its own page says it gives "relatively weak data isolation", because several tenants can share a physical partition.
- Namespace or tenant shard. Pinecone recommends one namespace per tenant, stores each namespace separately, and describes deleting a namespace as the way to offboard a tenant. Weaviate puts each tenant on its own shard, and deleting a tenant deletes all of its objects.
- Own collection, database or cluster. The strongest separation each store offers, and the most expensive to run at volume.
Two things follow from reading the ladder properly. First, the upper rungs buy real things: a smaller blast radius when a bug happens, a deletion you can prove with one operation rather than a delete-by-filter across a shared graph, and a unit you can place in a region. Second, no rung removes the need to scope the request. A namespace is still a parameter the caller passes. A Weaviate tenant is still a name in the request, and its documentation notes that with automatic tenant creation switched on, TenantOne and tenantOne become two different tenants, so a casing bug in one service quietly writes a school's documents somewhere nobody will query. Physical separation limits what a mistake can expose. It does not decide who is allowed to ask.
Choose the rung by the contract, not the latency
If isolation is an authorisation decision, the inputs are the promises you have made, not the query times you have measured. I would ask three questions of every tenant, or every class of tenant:
- What does the contract promise about deletion? If a customer can ask you to remove its data and expect proof, you want a rung where deletion is one operation on one unit (a namespace, a tenant shard, a collection), not a filtered delete whose completeness you have to argue.
- Does the data have to live somewhere in particular? A residency commitment puts the tenant in its own collection or cluster in that region. No filter satisfies it.
- Will someone audit the boundary? If a security reviewer will ask to see how tenant A is kept from tenant B, "a WHERE clause in four services" is a weak answer and "a separate unit, reached only through one gateway" is a strong one.
The answers sort tenants into tiers, and the tiers are a commercial structure as much as a technical one. An illustrative mix for a platform serving thousands of institutions (not figures from any real system): a long tail of single schools on a shared index behind a filter or partition key; a few hundred groups and larger contracts with deletion or audit clauses on their own namespace or shard; a handful of contracts with residency or regulatory terms in their own collection or cluster. The tier then belongs on the price list, because the higher rungs cost more to run.
The noisy-neighbour problem points the same way. Pinecone's documentation prices a query by the size of the namespace it scans, at one read unit per gigabyte, and gives its own example: a tenant in its own 1 GB namespace costs 1 read unit a query, while filtering the same tenant out of a shared 100 GB namespace costs 100. One very large tenant in a shared space makes every small tenant's query pay for the large one. Qdrant's tiered multitenancy, added in version 1.16, keeps small tenants together in a shared shard and promotes large ones to dedicated shards, which is the same conclusion reached from the performance side: tenants are not alike, and one rung for all of them is wrong for some of them.
Enforce the scope in one place
Whatever the rung, the scope has to be applied by something that knows who is asking. In practice that means a retrieval gateway:
- The tenant comes from the authenticated principal, a claim in the verified token or the session, never from a field in the request body that a caller can set.
- Only the gateway holds the store's credentials. The batch summariser, the evaluation job and the admin tool go through it like everything else. A service that wants to talk to the store directly is a design review, not a convenience.
- An unscoped query is refused, not defaulted. The gateway translates the tenant into whatever the rung needs: a filter, a partition key, a namespace, a collection name.
- If the store is Postgres with pgvector, row-level security can do this inside the database, keyed on a session setting the gateway sets. Read the documentation's warnings first: superusers and roles with
BYPASSRLSalways bypass it, and a table owner bypasses it too unless the table is set toFORCE ROW LEVEL SECURITY. An application that connects as the role that owns its tables has policies that do nothing.
The gateway is not the only place tenants meet. Anything keyed on a question can leak across tenants: a semantic cache, a reranker's cache, a log that feeds an evaluation set. Each needs the tenant in its key or its partition, for the same reason the index does.
Prove it holds
Isolation that is not tested is a belief. Two tests are cheap and catch most of what matters.
Canary documents. Give every tenant (or a sample across every tier and every rung) a small document containing a unique, meaningless string. At every release, and nightly against the production read path, query as each other tenant for those strings. The expected number of hits is zero, the alert threshold is one, and a hit is a release blocker. This tests the whole path, gateway included, which is the point.
An offboarding drill. Create a test tenant, load it, delete it the way a real offboarding would, then assert that retrieval returns nothing and that the storage the store reports for that unit is gone. If you cannot write that test for a tier, you cannot honestly promise deletion to customers in that tier.
What I got wrong
The leak I came closest to shipping was not in the index at all. A semantic cache in front of a retrieval path was keyed on the normalised question and the model, not on the tenant. Two schools asking the same question about their own policy would have shared one cached answer, built from the first school's documents. We caught it in a staging test with two test tenants, before any customer saw it, and the fix was small: the tenant went into the cache key and the cache moved behind the gateway. The lesson was larger. I had reviewed the index's isolation carefully and treated everything around the index as plumbing. Every component that stores something keyed on a question is part of the isolation boundary.
Where this is weakest
A gateway is another hop and another thing to keep up; for a team with fifty tenants and one service, one collection with row-level security set up correctly may be all the structure it needs. Tiering adds operational classes, and every class is something to monitor, migrate and explain. Canaries prove that retrieval does not cross tenants; they say nothing about other ways embeddings can leak information, which OWASP's list also covers. And the price-list argument assumes customers will pay for a higher tier, which in some markets they will not, in which case the rung is chosen by the contract and the cost is yours.
What would change my mind: if the stores themselves bound a credential to one tenant and refused any query outside it by default, much of the gateway argument would fall away and the filter would become a real boundary. So would good evidence that filter bugs are rare in practice. I have not seen either.
The decision for Monday
- List every caller that reaches your vector store directly. Every entry after the first is a place the tenant can be forgotten.
- Put a retrieval gateway in front of the store that takes the tenant from the authenticated identity and refuses unscoped queries; move the credentials there.
- Ask the three contract questions of each class of tenant and place each on a rung. Price the upper rungs.
- Add canary documents and an offboarding drill to the release pipeline.
- Put the tenant into the key of every cache in the retrieval path.
The short version
A tenant filter is a clause, and a clause can be forgotten. Choose how strongly to separate each tenant by what you have promised about deletion, location and audit, enforce the scope in one place from the caller's identity, and prove it at every release with canaries. Pick the rung for the contract; the latency follows.
Illustrations generated with AI.

