Kreuzberg.EmbeddingConfig (kreuzberg v4.8.5)

Copy Markdown View Source

Configuration for standalone text embedding generation.

Summary

Functions

Creates a new EmbeddingConfig with default values.

Converts the configuration to a map for NIF serialization.

Types

t()

@type t() :: %Kreuzberg.EmbeddingConfig{
  batch_size: pos_integer() | nil,
  model: String.t() | map(),
  normalize: boolean()
}

Functions

new(opts \\ [])

Creates a new EmbeddingConfig with default values.

to_map(config)

Converts the configuration to a map for NIF serialization.