Versions in this module Expand all Collapse all v0 v0.1.0 Nov 10, 2024 Changes in this version + type Option func(v *VoyageAI) + func WithBatchSize(batchSize int) Option + func WithClient(client http.Client) Option + func WithModel(model string) Option + func WithStripNewLines(stripNewLines bool) Option + func WithToken(token string) Option + type VoyageAI struct + BatchSize int + Model string + StripNewLines bool + func NewVoyageAI(opts ...Option) (*VoyageAI, error) + func (v *VoyageAI) EmbedDocuments(ctx context.Context, texts []string) ([][]float32, error) + func (v *VoyageAI) EmbedQuery(ctx context.Context, text string) ([]float32, error)