config

package
v0.2.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: 15 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 `` /* 141-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 {
	Provider   string
	OpenAI     openai.OpenAIConfig                    `koanf:"openai" json:"openai,omitempty"`
	Cohere     cohere.EmbeddingModelProviderCohere    `koanf:"cohere" json:"cohere,omitempty"`
	Vertex     vertex.EmbeddingProviderVertex         `koanf:"vertex" json:"vertex,omitempty"`
	Jina       jina.EmbeddingProviderJina             `koanf:"jina" json:"jina,omitempty"`
	Mistral    mistral.EmbeddingProviderMistral       `koanf:"mistral" json:"mistral,omitempty"`
	Mixedbread mixedbread.EmbeddingProviderMixedbread `koanf:"mixedbread" json:"mixedbread,omitempty"`
	LocalAI    localai.EmbeddingProviderLocalAI       `koanf:"localai" json:"localai,omitempty"`
	Ollama     ollama.EmbeddingProviderOllama         `koanf:"ollama" json:"ollama,omitempty"`
}

type VectorDBConfig

type VectorDBConfig struct {
	VectorDBPath string `` /* 139-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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