You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Results in a sqlalchemy.exc.ArgumentError: 'SchemaItem' object, such as a 'Column' or a 'Constraint' expected, got HalfVector([3072.0]) when attempting to load it. Using Vector instead works fine.
The difference seems to be that Vector is an alias for VECTOR, which derives from sqlalchemy.types.UserDefinedTypes, whereas HalfVector is distinct from HALFVEC. Using HALFVEC instead appears to work.
It appears to be the same situation for SparseVector.