llamacppembedder

package
v0.2.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LlamaCppEmbedder added in v0.0.9

type LlamaCppEmbedder struct {
	// contains filtered or unexported fields
}

func New

func New() *LlamaCppEmbedder

func (*LlamaCppEmbedder) Embed added in v0.0.9

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

Embed returns the embeddings for the given texts

func (*LlamaCppEmbedder) WithArgs added in v0.0.9

func (l *LlamaCppEmbedder) WithArgs(llamacppArgs []string) *LlamaCppEmbedder

WithArgs sets the args to pass to the llamacpp binary

func (*LlamaCppEmbedder) WithLlamaCppPath added in v0.0.9

func (l *LlamaCppEmbedder) WithLlamaCppPath(llamacppPath string) *LlamaCppEmbedder

WithLlamaCppPath sets the path to the llamacpp binary

func (*LlamaCppEmbedder) WithModel added in v0.0.9

func (l *LlamaCppEmbedder) WithModel(modelPath string) *LlamaCppEmbedder

WithModel sets the model to use for the embedder

Jump to

Keyboard shortcuts

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