Skip to main content

EmbeddingsModel

//ellmental/com.theagilemonkeys.ellmental.embeddingsmodel/EmbeddingsModel

EmbeddingsModel

interface EmbeddingsModel<Params>

Embeddings Model

An Embeddings Model allows embedding text into a vector space. It is parameterized via the Params type in order to allow different implementations to have additional parameters apart from the text to embed.

Parameters​

jvm

ParamsThe type of the parameters used by the model.

Inheritors​

OpenAIEmbeddingsModel

Functions​

NameSummary
embed[jvm]
abstract suspend fun embed(text: String, params: Params? = null): Embedding
Embeds the given text into a vector space.