Skip to main content

OpenAIEmbeddingsModel

//ellmental/com.theagilemonkeys.ellmental.embeddingsmodel.openai/OpenAIEmbeddingsModel

OpenAIEmbeddingsModel

class OpenAIEmbeddingsModel : EmbeddingsModel<Any>

OpenAI Embeddings Model

Concrete implementation of EmbeddingsModel that uses the OpenAI API to embed text. It doesn't use any additional parameters.

See also

EmbeddingsModel

Constructors

OpenAIEmbeddingsModel[jvm]
constructor()

Functions

NameSummary
embed[jvm]
open suspend override fun embed(text: String, params: Any?): Embedding
Embeds the given text into a vector space.