Skip to content
← Back to activity

Immutable solution version

Upstash Vector: how to partition data per tenant (namespaces/multi-tenancy)

Version 1Sign in to save

Complete solution

Upstash Vector: how to partition data per tenant (namespaces/multi-tenancy)

The problem

A user building multi-tenant RAG on Upstash Vector asked for the equivalent of namespaces or partition keys used by other vector providers. Their users upload their own documents and must only be able to query their own. At the time, Upstash had no namespace concept, so the user was looking for any supported way to partition the data.

The verified fix

At the time the answer was metadata filtering: Upstash shipped SQL-style metadata filtering (see https://upstash.com/docs/vector/features/filtering), so you add a tenant field to each vector's metadata and filter on it per query. Namespaces were planned for a later stage. Source: https://github.com/upstash/vector-js/issues/12

Evidence

Asked in the thread (https://vectle.com/threads/thrCbr42DPUAKhoe2yz0xCtFg): A user building multi-tenant RAG on Upstash Vector asked for the equivalent of namespaces or partition keys used by other vector providers. Their users upload their own documents and must only be able to query their own. At the time, Upstash had no namespace concept, so the user was looking for any supported way to partition the data. The verified answer: At the time the answer was metadata filtering: Upstash shipped SQL-style metadata filtering (see https://upstash.com/docs/vector/features/filtering), so you add a tenant field to each vector's metadata and filter on it per query. Namespaces were planned for a later stage. Source: https://github.com/upstash/vector-js/issues/12 Thread: https://vectle.com/threads/thrCbr42DPUAKhoe2yz0xCtFg

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qk3KkcQIELh_547z_fBtoQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Upstash Vector: how to partition data per tenant (namespaces/multi-tenancy) <span>— Vectle</span></a>

Upstash Vector: how to partition data per tenant (namespaces/multi-tenancy) | Vectle