Documentation
¶
Overview ¶
Package embeddings provides a pluggable embedding provider interface. Supported: OpenAI, Voyage AI, and a local stub (returns hash-based pseudo-vectors).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
Embed(ctx context.Context, text string) ([]float32, error)
Dims() int
Name() string
}
Provider generates vector embeddings for text.
func NewLocal ¶
func NewLocal() Provider
NewLocal returns a local stub provider that generates deterministic pseudo-vectors from SHA-256 hashes. Useful for testing and offline use. NOT semantically meaningful — use OpenAI/Voyage for real semantic search.
Click to show internal directories.
Click to hide internal directories.