Documentation
¶
Overview ¶
Package embedding defines a small, provider-agnostic interface for generating vector embeddings from text.
The core abstraction is the Embedder interface, which turns a slice of input texts into a slice of embedding vectors while preserving input order.
This package also defines common types used across implementations: - Vector: an embedding vector (typically []float32) - Model: a provider-specific model identifier string
Provider implementations live in subpackages (for example, embedding/openai).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrEmptyInput = errors.New("empty input")
ErrEmptyInput is returned when an embedding call receives no input texts.
Functions ¶
This section is empty.
Types ¶
type Embedder ¶
Embedder generates vector embeddings for input texts.
Implementations should preserve the ordering of inputs.