Documentation ¶
Index ¶
- func AsEmbeddingModelProviderConfig(emp types.EmbeddingModelProvider, export bool) (config.EmbeddingsProviderConfig, error)
- func CompareRequiredFields(a, b any) error
- func ExportConfig(c any) (any, error)
- func FindProviderConfig(name string, providers []config.EmbeddingsProviderConfig) *config.EmbeddingsProviderConfig
- func GetProviderCfg(name string, embeddingsConfig config.EmbeddingsConfig) (*config.EmbeddingsProviderConfig, error)
- func GetProviderConfig(providerType string) (types.EmbeddingModelProvider, error)
- func GetSelectedEmbeddingsModelProvider(selected string, embeddingsConfig config.EmbeddingsConfig) (types.EmbeddingModelProvider, error)
- func ProviderFromConfig(providerConfig config.EmbeddingsProviderConfig) (types.EmbeddingModelProvider, error)
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.EmbeddingsProviderConfig, error)
func CompareRequiredFields ¶ added in v0.3.0
func ExportConfig ¶ added in v0.3.0
func FindProviderConfig ¶ added in v0.3.0
func FindProviderConfig(name string, providers []config.EmbeddingsProviderConfig) *config.EmbeddingsProviderConfig
func GetProviderCfg ¶ added in v0.3.0
func GetProviderCfg(name string, embeddingsConfig config.EmbeddingsConfig) (*config.EmbeddingsProviderConfig, 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.EmbeddingsProviderConfig) (types.EmbeddingModelProvider, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.