EmbeddingClient

interface EmbeddingClient

An interface for a client that can embed text.

Inheritors

Functions

Link copied to clipboard
abstract fun batchEmbed(texts: List<String>): Result<List<List<Double>>, EmbeddingClientException>

Embeds the given texts.

Link copied to clipboard
abstract fun embed(text: String): Result<List<Double>, EmbeddingClientException>

Embeds the given text.