embed

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

Returns a vector for each of texts, in the same order. All vectors of one model have the same length.

Throws

when the provider cannot be reached or returns an error.