Documentation
¶
Overview ¶
Package embed provides text embedding adapters. v0.1 ships:
- "none" — disabled; semantic_search falls back to substring search
- "voyage" — Voyage AI HTTP API (recommended default for quality)
- "openai" — OpenAI text-embedding-3-small/large
- "local" — Ollama on localhost (e.g. nomic-embed-text)
Only the disabled embedder is implemented in v0.1's first cut. Real providers can be slotted in without changing the storage interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Embedder ¶
type Embedder interface {
Embed(ctx context.Context, text string) ([]float32, error)
Dimension() int
Name() string
Enabled() bool
}
Embedder mirrors types.Embedder but is repeated here to avoid an import cycle with packages that pull only the embed adapter.
Click to show internal directories.
Click to hide internal directories.