LocalEmbeddingModels

org.llm4s.llmconnect.config.LocalEmbeddingModels
See theLocalEmbeddingModels companion object
@Stable
final case class LocalEmbeddingModels

Configuration specifying local model names for non-text modality embedding.

Holds the model identifiers used by local encoders to produce embeddings for image, audio, and video content. These models run locally (e.g. via ONNX or stub implementations) rather than calling a remote API.

Value parameters

audioModel

Local model name for audio embeddings (e.g. "wav2vec2-base").

imageModel

Local model name for image embeddings (e.g. "openclip-vit-b32").

videoModel

Local model name for video embeddings (e.g. "timesformer-base"). Build one with LocalEmbeddingModels.apply and change it with the with* setters; the constructor and copy are private, so a new modality never breaks callers.

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 withAudioModel(audioModel: String): LocalEmbeddingModels

Sets the local model name for audio embeddings.

Sets the local model name for audio embeddings.

Attributes

def withImageModel(imageModel: String): LocalEmbeddingModels

Sets the local model name for image embeddings.

Sets the local model name for image embeddings.

Attributes

def withVideoModel(videoModel: String): LocalEmbeddingModels

Sets the local model name for video embeddings.

Sets the local model name for video embeddings.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product