content/develop/ai/redisvl/0.11.0/api/vector.md
The Vector class in RedisVL is a container that encapsulates a numerical vector, it’s datatype, corresponding index field name, and optional importance weight. It is used when constructing multi-vector queries using the MultiVectorQuery class.
class Vector(*, vector, field_name, dtype='float32', weight=1.0)Simple object containing the necessary arguments to perform a multi vector query.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
validate_vector()If the vector passed in is an array of float convert it to a byte string.
model_config: ClassVar[ConfigDict] = {}Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].