Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2026 Changes in this version + var Catalog = []CatalogEntry + var ErrNoModel = errors.New("no embedding model configured (pass --embedding-model or per-call 'model')") + var ErrNoServer = errors.New("no embedding server configured") + func BareName(name string) string + func Cosine(a, b []float32) float64 + func Dot(a, b []float32) float64 + func Normalize(v []float32) + type CatalogEntry struct + Description string + Dimensions int + Name string + Size string + func CatalogLookup(bareName string) *CatalogEntry + type Embedder interface + Embed func(ctx context.Context, text string) ([]float32, error) + Model func() string + type LocalModel struct + Digest string + ModifiedAt time.Time + Name string + Size int64 + type OllamaEmbedder struct + func NewOllama(server, model string) *OllamaEmbedder + func (o *OllamaEmbedder) Embed(ctx context.Context, text string) ([]float32, error) + func (o *OllamaEmbedder) ListLocal(ctx context.Context) ([]LocalModel, error) + func (o *OllamaEmbedder) Model() string + func (o *OllamaEmbedder) Pull(ctx context.Context, name string, onProgress func(PullProgress)) error + type PullProgress struct + Completed int64 + Digest string + Status string + Total int64