embed

open suspend override fun embed(texts: List<String>): List<FloatArray>

Sends texts to the embeddings API and returns their vectors, in the same order.

Throws

when the API cannot be reached, returns an error, or returns something that is not a vector for each text.