cohere

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EmbeddingModelProviderCohereName string = "cohere"

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddingModelProviderCohere

type EmbeddingModelProviderCohere struct {
	APIKey string `env:"COHERE_API_KEY" koanf:"apiKey" export:"false"`
	Model  string `env:"COHERE_MODEL" koanf:"model" export:"required"`
}

func (*EmbeddingModelProviderCohere) Config

func (p *EmbeddingModelProviderCohere) Config() any

func (*EmbeddingModelProviderCohere) Configure added in v0.3.0

func (p *EmbeddingModelProviderCohere) Configure() error

func (*EmbeddingModelProviderCohere) EmbeddingFunc

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

func (*EmbeddingModelProviderCohere) Name

Jump to

Keyboard shortcuts

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