config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkingConfig

type ChunkingConfig struct {
	SplitOn        []string `yaml:"split_on"`
	MaxChunkTokens int      `yaml:"max_chunk_tokens"`
	OverlapTokens  int      `yaml:"overlap_tokens"`
}

type Config

type Config struct {
	System     SystemConfig     `yaml:"system"`
	Database   DatabaseConfig   `yaml:"database"`
	Embeddings EmbeddingsConfig `yaml:"embeddings"`
	Taxonomy   TaxonomyConfig   `yaml:"taxonomy"`
	// contains filtered or unexported fields
}

func Load

func Load(path string) (*Config, error)

func (*Config) ResolvePath

func (c *Config) ResolvePath(rel string) string

func (*Config) Validate

func (c *Config) Validate() error

type DatabaseConfig

type DatabaseConfig struct {
	Path string `yaml:"path"`
}

type EmbeddingsConfig

type EmbeddingsConfig struct {
	ModelRepo   string         `yaml:"model_repo"`
	ModelPath   string         `yaml:"model_path"`
	ModelSHA256 string         `yaml:"model_sha256,omitempty"`
	Dimensions  int            `yaml:"dimensions"`
	SearchTopK  int            `yaml:"search_top_k"`
	Chunking    ChunkingConfig `yaml:"chunking"`
}

type SystemConfig

type SystemConfig struct {
	LogFile string `yaml:"log_file"`
	DocsDir string `yaml:"docs_dir"`
}

type TaxonomyConfig

type TaxonomyConfig struct {
	AllowedCategories []string            `yaml:"allowed_categories"`
	KeyTerms          map[string][]string `yaml:"key_terms"`
}

Jump to

Keyboard shortcuts

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