Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedder ¶
type Embedder interface {
// Embed returns the embedding vector for the given text.
Embed(ctx context.Context, text string) ([]float64, error)
EmbedBatch(ctx context.Context, text []string) ([][]float64, error)
}
Embedder computes embeddings for text. Implementations can use OpenAI, local models, or other embedding services.
type GatewayEmbedder ¶
type GatewayEmbedder struct {
// contains filtered or unexported fields
}
GatewayEmbedder implements Embedder by calling the LLM gateway. Used for semantic chunking which needs per-sentence embeddings.