EmbeddingModelConfig

org.llm4s.llmconnect.config.EmbeddingModelConfig
See theEmbeddingModelConfig companion object
@Stable
final case class EmbeddingModelConfig

Configuration for a text embedding model, pairing a model identifier with its output vector size.

Used by embedding providers and the model dimension registry to resolve the expected dimensionality of embeddings produced by a given model.

Value parameters

dimensions

Number of dimensions in the embedding vectors produced by this model. Build one with EmbeddingModelConfig.apply and change it with the with* setters; the constructor and copy are private, so a new field never breaks callers.

name

Model identifier (e.g. "text-embedding-3-small", "voyage-3-large").

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 withDimensions(dimensions: Int): EmbeddingModelConfig

Sets the number of dimensions in the embedding vectors.

Sets the number of dimensions in the embedding vectors.

Attributes

def withName(name: String): EmbeddingModelConfig

Sets the model identifier.

Sets the model identifier.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product