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 ¶
LoadFromFile reads a JSON config file and merges it with defaults. Missing fields in the file retain their default values.
Click to show internal directories.
Click to hide internal directories.