localai

package
v0.4.14-rc.22 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EmbeddingProviderLocalAIName = "localai"

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddingProviderLocalAI

type EmbeddingProviderLocalAI struct {
	Model string `koanf:"model" env:"LOCALAI_MODEL" export:"required"`
}

func (*EmbeddingProviderLocalAI) Config

func (p *EmbeddingProviderLocalAI) Config() any

func (*EmbeddingProviderLocalAI) Configure added in v0.3.0

func (p *EmbeddingProviderLocalAI) Configure() error

func (*EmbeddingProviderLocalAI) EmbeddingFunc

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

func (*EmbeddingProviderLocalAI) Name

func (p *EmbeddingProviderLocalAI) Name() string

Jump to

Keyboard shortcuts

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