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 client.embedMultimodal() for real provider embeddings. 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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product