pypi / pgvector
pgvector
What changed in pgvector 0.4 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
8 breaking1 new APIs and options5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpgvector 0.512 changes
Breaking changes 8
For Django, SQLAlchemy, SQLModel, and Peewee, halfvec now returns a list.
The dependency on NumPy was removed.
Support for Python versions earlier than 3.10 was dropped.
Re-exported classes were removed; use the top-level pgvector package instead.
Support for SQLAlchemy versions earlier than 2 was dropped.
The utils package was removed; use the top-level pgvector package instead.
For Django, SQLAlchemy, SQLModel, and Peewee, vector now returns a list.
For Psycopg 3, Psycopg 2, asyncpg, and pg8000, vector now returns a Vector object.
New APIs and options 1
Added experimental support for type hints.
Fixes and other changes 3
Fixed an error with the Bit constructor for NumPy 1.24–1.26.
Fixed an error with non-canonical SciPy sparse arrays.
Fixed an error with SciPy sparse arrays that contain explicit zeros.
pgvector 0.42 changes
Fixes and other changes 2
SQLAlchemy support for bit types now accepts str objects.
Added support for Django 6.