cohere

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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"`
	Model  string `env:"COHERE_MODEL" koanf:"model"`
}

func (*EmbeddingModelProviderCohere) Config

func (p *EmbeddingModelProviderCohere) Config() any

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