Documentation ¶ Index ¶ type Embedder func NewEmbedder(baseURL, apiKey, model string, timeout time.Duration) (*Embedder, error) func (e *Embedder) BatchEmbed(ctx context.Context, texts []string) ([][]float32, error) func (e *Embedder) Embed(ctx context.Context, text string) ([]float32, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Embedder ¶ type Embedder struct { // contains filtered or unexported fields } func NewEmbedder ¶ func NewEmbedder(baseURL, apiKey, model string, timeout time.Duration) (*Embedder, error) func (*Embedder) BatchEmbed ¶ func (e *Embedder) BatchEmbed(ctx context.Context, texts []string) ([][]float32, error) func (*Embedder) Embed ¶ func (e *Embedder) Embed(ctx context.Context, text string) ([]float32, error) Source Files ¶ View all Source files embedder.go Click to show internal directories. Click to hide internal directories.