org.llm4s.llmconnect.model.EmbeddingRequest
See theEmbeddingRequest companion object
@Stable
Text-only embedding request used by HTTP providers (OpenAI/Voyage).
Value parameters
- input
-
the texts to embed, one vector per text, in order
- model
-
the embedding model and its dimensions
- purpose
-
whether the texts are documents to index or queries to run against them; defaults to InputPurpose.Document. Providers whose models embed the two differently (Voyage, Jina, Cohere) map it onto their own parameter; the rest ignore it.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article