ollama

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EmbeddingProviderOllamaName = "ollama"

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddingProviderOllama

type EmbeddingProviderOllama struct {
	BaseURL string `koanf:"baseURL" env:"OLLAMA_BASE_URL"`
	Model   string `koanf:"model" env:"OLLAMA_MODEL" export:"required"`
}

func (*EmbeddingProviderOllama) Config

func (p *EmbeddingProviderOllama) Config() any

func (*EmbeddingProviderOllama) Configure added in v0.3.0

func (p *EmbeddingProviderOllama) Configure() error

func (*EmbeddingProviderOllama) EmbeddingFunc

func (p *EmbeddingProviderOllama) EmbeddingFunc() (cg.EmbeddingFunc, error)

func (*EmbeddingProviderOllama) Name

func (p *EmbeddingProviderOllama) Name() string

Jump to

Keyboard shortcuts

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