ollamaembedder

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

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 New

func New() *Embedder

func (*Embedder) Embed

func (e *Embedder) Embed(ctx context.Context, texts []string) ([]embedder.Embedding, error)

Embed returns the embeddings for the given texts

func (*Embedder) WithEndpoint

func (e *Embedder) WithEndpoint(endpoint string) *Embedder

func (*Embedder) WithModel

func (e *Embedder) WithModel(model string) *Embedder

type OllamaEmbedError added in v0.3.0

type OllamaEmbedError struct {
	Err error
}

func (*OllamaEmbedError) Error added in v0.3.0

func (e *OllamaEmbedError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL