Skip to main content

Python class

EmbeddingsGenerationOutput

EmbeddingsGenerationOutput​

class max.interfaces.EmbeddingsGenerationOutput(embeddings)

source

Bases: Struct

Response structure for embedding generation.

Parameters:

embeddings (ndarray[tuple[Any, ...], dtype[floating[Any]]]) – The generated embeddings as a NumPy array.

embeddings​

embeddings: ndarray[tuple[Any, ...], dtype[floating[Any]]]

source

The generated embeddings as a NumPy array.

is_done​

property is_done: bool

source

Indicates whether the embedding generation process is complete.

Returns:

Always True, as embedding generation is a single-step operation.