Versions in this module Expand all Collapse all v0 v0.3.1 Nov 27, 2026 Changes in this version type LazyCompleter + func (l *LazyCompleter) Model() string v0.3.0 Nov 9, 2026 Changes in this version + var ErrClosed = errors.New("sense: closed") + func Normalize(vec []float32) + type Completer interface + Complete func(ctx context.Context, system, user string) (string, error) + type Embedder interface + Dimensions func() int + Embed func(ctx context.Context, role Role, texts []string) ([][]float32, error) + type Identified interface + Model func() string + type ImageEmbedder interface + Dimensions func() int + EmbedImages func(ctx context.Context, images []image.Image) ([][]float32, error) + type LazyCompleter struct + func NewLazyCompleter(load func(ctx context.Context) (Completer, error)) *LazyCompleter + func (l *LazyCompleter) Close() error + func (l *LazyCompleter) Complete(ctx context.Context, system, user string) (string, error) + func (l *LazyCompleter) Load(ctx context.Context) error + func (l *LazyCompleter) State() (LazyState, error) + type LazyEmbedder struct + func NewLazyEmbedder(model string, dims int, load func(ctx context.Context) (Embedder, error)) *LazyEmbedder + func (l *LazyEmbedder) Close() error + func (l *LazyEmbedder) Dimensions() int + func (l *LazyEmbedder) Embed(ctx context.Context, role Role, texts []string) ([][]float32, error) + func (l *LazyEmbedder) Load(ctx context.Context) error + func (l *LazyEmbedder) Model() string + func (l *LazyEmbedder) State() (LazyState, error) + type LazyImageEmbedder struct + func NewLazyImageEmbedder(model string, dims int, load func(ctx context.Context) (ImageEmbedder, error)) *LazyImageEmbedder + func (l *LazyImageEmbedder) Close() error + func (l *LazyImageEmbedder) Dimensions() int + func (l *LazyImageEmbedder) EmbedImages(ctx context.Context, images []image.Image) ([][]float32, error) + func (l *LazyImageEmbedder) Load(ctx context.Context) error + func (l *LazyImageEmbedder) Model() string + func (l *LazyImageEmbedder) State() (LazyState, error) + type LazyState int + const LazyClosed + const LazyFailed + const LazyLoaded + const LazyLoading + const LazyNotStarted + func (s LazyState) String() string + type LoadPanicError struct + Stack []byte + Value any + func (e *LoadPanicError) Error() string + type Role int + const RoleDocument + const RoleQuery + func (r Role) String() string + type Segment struct + End time.Duration + Start time.Duration + Vector []float32 + type VideoEmbedder interface + Dimensions func() int + EmbedVideo func(ctx context.Context, path string) ([]Segment, error)