Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + const DefaultEndpoint + const DefaultMaxInputTokens + const DefaultTimeout + type Adapter struct + func Open(opts Options) (*Adapter, error) + func (a *Adapter) Close() error + func (a *Adapter) Dimension() int + func (a *Adapter) Embed(ctx context.Context, batch []string) ([][]float32, error) + func (a *Adapter) EmbedQuery(ctx context.Context, queries []string) ([][]float32, error) + func (a *Adapter) Identity() types.EmbeddingIdentity + func (a *Adapter) MaxInputTokens() int + func (a *Adapter) Name() string + type Options struct + Endpoint string + ModelName string + TargetDim int + Timeout time.Duration