trait ParsesEmbeddings

Methods

array
parseCohereEmbeddings(mixed $embeddings)

Normalize the embeddings of a Cohere response into a list of vectors.

Details

at line 18
protected array parseCohereEmbeddings(mixed $embeddings)

Normalize the embeddings of a Cohere response into a list of vectors.

Parameters

mixed $embeddings

Return Value

array

Exceptions

AiException