config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() string

DefaultConfigPath returns ~/.vecbound/config.json.

Types

type Config

type Config struct {
	ChunkSize    int    `json:"chunk_size"`
	ChunkOverlap int    `json:"chunk_overlap"`
	ModelPath    string `json:"model_path"`
	Workers      int    `json:"workers"`
	BatchSize    int    `json:"batch_size"`
	MaxCPU       int    `json:"max_cpu"`
	MaxMem       int    `json:"max_mem"`
}

Config holds all application configuration values.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a Config with sensible defaults.

func LoadFromFile

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

LoadFromFile reads a JSON config file and merges it with defaults. Missing fields in the file retain their default values.

Jump to

Keyboard shortcuts

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