embeddings

package
v0.4.12-gateway.dev2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsEmbeddingModelProviderConfig added in v0.3.0

func AsEmbeddingModelProviderConfig(emp types.EmbeddingModelProvider, export bool) (config.ModelProviderConfig, error)

func CompareRequiredFields added in v0.3.0

func CompareRequiredFields(a, b any) error

func ExportConfig added in v0.3.0

func ExportConfig(c any) (any, error)

func FindProviderConfig added in v0.3.0

func FindProviderConfig(name string, providers []config.ModelProviderConfig) *config.ModelProviderConfig

func GetProviderCfg added in v0.3.0

func GetProviderCfg(name string, embeddingsConfig config.EmbeddingsConfig) (*config.ModelProviderConfig, error)

func GetProviderConfig added in v0.3.0

func GetProviderConfig(providerType string) (types.EmbeddingModelProvider, error)

func GetSelectedEmbeddingsModelProvider added in v0.3.0

func GetSelectedEmbeddingsModelProvider(selected string, embeddingsConfig config.EmbeddingsConfig) (types.EmbeddingModelProvider, error)

func ProviderFromConfig added in v0.3.0

func ProviderFromConfig(providerConfig config.ModelProviderConfig) (types.EmbeddingModelProvider, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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