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
I'm trying to declare a Field as a Vector-Field by setting the vector_options on the Field.
Pydantic is then forcing me to annotate the field with a proper type.
But with any possible type for a vector, I always get errors.
The one that I think should definitly work is list[float], but this results in AttributeError: type object 'float' has no attribute '__origin__'.
There seems to be no documentation about this feature.
I just found a merge-request which describes some features a bit, but there is no example, test or any documentation about this.
The text was updated successfully, but these errors were encountered:
I'm running into the same thing. It looks like they want you to type it as tender_embedding: list[list[float]] but even with that, I'm having issues getting any reasonable results when searching.
The Bug
I'm trying to declare a Field as a Vector-Field by setting the
vector_options
on theField
.Pydantic is then forcing me to annotate the field with a proper type.
But with any possible type for a vector, I always get errors.
The one that I think should definitly work is
list[float]
, but this results inAttributeError: type object 'float' has no attribute '__origin__'
.Example
No Documentation for Vector-Fields?
There seems to be no documentation about this feature.
I just found a merge-request which describes some features a bit, but there is no example, test or any documentation about this.
The text was updated successfully, but these errors were encountered: