pgvector / pgvector-python

pgvector support for Python
MIT License
975 stars 63 forks source link

pgvector-python client support for sparse vectors. #71

Closed anugrahastephen closed 5 months ago

anugrahastephen commented 6 months ago

Does PGVector python client supports sparse vector embeddings storage in postgresDB like Splade?

ankane commented 6 months ago

Hi @anugrahastephen, it's available on master, but isn't released yet (still making adjustments). I also added an example for sparse search.

anugrahastephen commented 6 months ago

Hi @ankane , thank you for your quick response. Hope you release the feature soon. Thanks for the project, it has been a great experience working with it.

ankane commented 5 months ago

Just released 0.3.0 🎉

SparseVector([1, 0, 2, 0, 3, 0])
# or
SparseVector({0: 1, 2: 2, 4: 3}, 6)