We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This example does not work for SparseVector and HalfVector:
from pgvector.sqlalchemy import Vector class Item(Base): embedding = mapped_column(Vector(3))
When importing using:
from pgvector.sqlalchemy import Vector, SparseVector, HalfVector
Vector is correctly imported as UserDefinedType VECTOR, but SparseVector, and HalfVector are not.
UserDefinedType
pgvector-python/pgvector/sqlalchemy/__init__.py
Lines 1 to 8 in 57b6a61
The text was updated successfully, but these errors were encountered:
Hi @tux-type, see the docs for the right types to import for SQLAlchemy.
Sorry, something went wrong.
No branches or pull requests
This example does not work for SparseVector and HalfVector:
When importing using:
Vector is correctly imported as
UserDefinedType
VECTOR, but SparseVector, and HalfVector are not.pgvector-python/pgvector/sqlalchemy/__init__.py
Lines 1 to 8 in 57b6a61
The text was updated successfully, but these errors were encountered: