The MongoDB\BSON\VectorType enum
The MongoDB\BSON\VectorType enum is used to specify the type of vector data stored in a MongoDB\BSON\Binary with subtype MongoDB\BSON\Binary::TYPE_VECTOR.
Intro
The MongoDB\BSON\VectorType enum is used to specify the type of vector data stored in a MongoDB\BSON\Binary with subtype MongoDB\BSON\Binary::TYPE_VECTOR.
Enumsynopsis
MongoDB\BSON\VectorTypeFloat32Each element in the vector is a 32-bit floating point value.Int8Each element in the vector is an 8-bit integer value.PackedBitEach element in the vector is a 1-bit value. When creating vectors of this type, you may pass either bool or 1-bit int values, i.e. 0 or 1.