Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedder ¶
type Embedder struct {
// contains filtered or unexported fields
}
Embedder batches text → []float32 vectors using an LLM provider.
func New ¶
New creates a new Embedder. If provider is nil (LLM disabled via provider=none), New returns nil. Callers must check for nil before use.
Block 3.4: the caller-supplied batchSize is clamped to the provider's declared batch ceiling (OpenAI 2048, Azure 16, Ollama 128). A batchSize exceeding the ceiling would cause silent truncation or explicit 400s depending on the provider.
func (*Embedder) EmbedTexts ¶
EmbedTexts embeds a slice of texts using concurrent batches.
Click to show internal directories.
Click to hide internal directories.