pgvector / pgvector-python

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

Fix `HalfVector` #75

Closed rsomani95 closed 5 months ago

rsomani95 commented 5 months ago

This PR brings the HalfVector implementation closer to that of Vector.

In the current state of the master branch, django > halfvec > HalfVectorField fails to read data from the DB. I was using a Postgres backend for my tests, it's a bit tricky to reproduce this cleanly as my project is a bit heavy, but perhaps this makes sense at a glance.

ankane commented 5 months ago

Hi @rsomani95, thanks for reporting. I'd still like HalfVectorField to return a HalfVector object, but pushed a fix in the commit above.