Skip to content

Enable partitioning for knowledge-bases to support multi-tenancy properly #344

Description

@vizsatiz

For applications with multiple tenants, sharing an approximate index between tenants means vectors from one tenant can affect recall (and speed) for other tenants.

For tenant isolation, use list partitioning or separate tables.

CREATE TABLE items (customer_id int, embedding vector(3)) PARTITION BY LIST(customer_id);

https://github.com/pgvector/pgvector#multitenancy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions