Documentation
¶
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)
Dimensions() int
}
Embedder is the pluggable embedding interface.
type NoOpEmbedder ¶
type NoOpEmbedder struct{}
NoOpEmbedder skips embedding — search falls back to full-text.
func (*NoOpEmbedder) Dimensions ¶
func (n *NoOpEmbedder) Dimensions() int
type OllamaEmbedder ¶
OllamaEmbedder calls the local Ollama embeddings API.
func (*OllamaEmbedder) Dimensions ¶
func (e *OllamaEmbedder) Dimensions() int
type OpenAIEmbedder ¶
OpenAIEmbedder calls the OpenAI embeddings API.
func (*OpenAIEmbedder) Dimensions ¶
func (e *OpenAIEmbedder) Dimensions() int
Click to show internal directories.
Click to hide internal directories.