Versions in this module Expand all Collapse all v0 v0.0.3 Apr 6, 2026 Changes in this version + type Huggingface struct + BatchSize int + Model string + StripNewLines bool + Task string + func NewHuggingface(opts ...Option) (*Huggingface, error) + func (e *Huggingface) EmbedDocuments(ctx context.Context, texts []string) ([][]float32, error) + func (e *Huggingface) EmbedQuery(ctx context.Context, text string) ([]float32, error) + type Option func(p *Huggingface) + func WithBatchSize(batchSize int) Option + func WithClient(client huggingface.LLM) Option + func WithModel(model string) Option + func WithStripNewLines(stripNewLines bool) Option + func WithTask(task string) Option