-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: BSON
-
None
Context
BSON Binary Vector Subtype Support was introduced in PYTHON-4577 but converting numpy arrays wasn't included in the initial scope.
Currently, customer can instead uses a BinaryVectorDtype.FLOAT32 : bson_query_vector = Binary.from_vector(query_text_embeddings, BinaryVectorDtype.FLOAT32)
For further information, as a sketch, we would take an optional dependency on numpy, and provide an option to encode/decode BinaryVectorDtype using numpy arrays instead of python lists. Potentially this would be a new CodecOption, or some other centralized way to opt-in.
Definition of done
Support natively numpy arrays