EmbeddingRequest

org.llm4s.llmconnect.model.EmbeddingRequest
See theEmbeddingRequest companion object
@Stable
final case class EmbeddingRequest

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withInput(input: Seq[String]): EmbeddingRequest

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product