FileEmbeddingConfig

org.llm4s.rag.embed.FileEmbeddingConfig
final case class FileEmbeddingConfig(textModel: EmbeddingModelConfig, localModels: LocalEmbeddingModels, chunking: TextChunkingConfig, experimentalStubs: Boolean, maxMediaFileSize: Long)

Everything FileEmbedder needs beyond the file itself and the client that embeds it.

Grouping these means a caller configures the embedder once rather than repeating five arguments - including a stubs toggle that is a deployment decision, not a call-site one - at every call.

Value parameters

chunking

Text chunking settings; if enabled, extracted text is split before embedding.

experimentalStubs

When false, image/audio/video files are read and forwarded to the MultimodalEmbeddingProvider given to encodeFromPath. When true, deterministic stub vectors are returned instead.

localModels

Model configurations for the image, audio and video modalities.

maxMediaFileSize

Maximum allowed media file size in bytes. Files exceeding this limit are rejected with an error. Defaults to 50 MB.

textModel

Model configuration (name + dimensions) used for text-like files.

Attributes

Source
FileEmbedder.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product