Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Question Re. Compound Vector Indexes #143

Open
rsomani95 opened this issue Oct 19, 2024 · 1 comment
Open

General Question Re. Compound Vector Indexes #143

rsomani95 opened this issue Oct 19, 2024 · 1 comment

Comments

@rsomani95
Copy link

Hi, this may be a bit of a silly question, but I'm very curious to hear your take on it: is it even feasible to have compound indexes with a vector index?

Concretely, I have two fields in my table called embedding and category. I almost always filter on category when using embedding to do vector search, and so theoretically having a compound index should help. Also curious if your answer would change if category has a fixed range of values vs. an arbitrary string.

Thanks!

@rsomani95 rsomani95 changed the title General Question Re. Vector Indexes General Question Re. Compound Vector Indexes Oct 19, 2024
@linear linear bot added the community label Oct 21, 2024
@cevian
Copy link
Collaborator

cevian commented Nov 7, 2024

We do plan to look at compound indexes in the future. But, for categorical variables you also have the option of using partial indexing and/or partitioning the table by category. For smooth variables, neither of those is possible though.

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

No branches or pull requests

2 participants