Skip to content

feat: support for Halfvec and Sparsevec vector types #226

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nazarpechka
Copy link

This PR adds full support for pgvector’s Halfvec and Sparsevec vector types in both table and index creation.
This adresses the 2 000-dimension limit of the standard vector type, not enough for models like text-embedding-3-large.

  • halfvec stores embeddings as INT8 quantized values and supports indexing up to 16 000 dimensions.
  • sparsevec stores sparse embeddings and also supports up to 16 000 dimensions.

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

Successfully merging this pull request may close these issues.

1 participant