Updated on 2026-11-06 GMT+08:00

Vectors

The EmbeddingVector class is encapsulated in vectors. This class object represents the one-dimensional vector type.

Table 1 Properties

Property

Type

Description

vector

list[float]

One-dimensional vector list.

dims

int

Vector dimensionality.

Table 2 Methods

Method

Parameter

Return Value

Description

__init__

obj: dict

None

Constructor: Initializes a vector object from a dictionary object.

to_struct

None

dict

Returns a dictionary object that contains the vector and dimension of the current vector class object.

from_struct

cls, obj:dict

EmbeddingVector

Inputs a dictionary and calls the class method to return a class object.

Creating a Vector

The following example demonstrates how to create a vector type.

from aura_frame.multimodal.types import EmbeddingVector

vec_dict = {"vector": [1, 2, 3], "dims": 3}
vec = EmbeddingVector(vec_dict)
print(vec.vector)
print(vec.dims)