config

package
v0.6.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config struct {
	EmbeddingsConfig EmbeddingsConfig `koanf:"embeddings" json:"embeddings,omitempty"`
}

func LoadConfig added in v0.2.0

func LoadConfig(configFile string) (*Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	DSN         string `` /* 176-byte string literal not displayed */
	AutoMigrate string `usage:"Auto migrate database" default:"true" env:"KNOW_DB_AUTO_MIGRATE"`
}

type EmbeddingsConfig added in v0.2.0

type EmbeddingsConfig struct {
	Providers []ModelProviderConfig `koanf:"providers" json:"providers,omitempty" mapstructure:"providers"`
}

func (*EmbeddingsConfig) RemoveUnselected added in v0.3.0

func (ec *EmbeddingsConfig) RemoveUnselected(selected string)

type ModelProviderConfig added in v0.4.7

type ModelProviderConfig struct {
	Name   string         `koanf:"name" json:"name,omitempty" mapstructure:"name"`
	Type   string         `koanf:"type" json:"type,omitempty" mapstructure:"type"`
	Config map[string]any `koanf:"config" json:"config,omitempty" mapstructure:"config"`
}

type VectorDBConfig

type VectorDBConfig struct {
	DSN string `` /* 152-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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