config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Server settings
	Port            string
	RequestMaxBytes int64

	// Storage settings
	StoragePath string

	// Cache settings
	CacheTTL   time.Duration
	MaxEntries int

	// Semantic thresholds
	HighThreshold          float32
	LowThreshold           float32
	EnableGrayZoneVerifier bool

	// HTTP client settings
	HTTPTimeout       time.Duration
	HTTPMaxRetries    int
	HTTPRetryBaseWait time.Duration

	// Provider settings
	EmbeddingProvider string

	// Model overrides (optional)
	OpenAIEmbedModel   string
	OpenAIVerifyModel  string
	MistralEmbedModel  string
	MistralVerifyModel string
	ClaudeModel        string
	ClaudeVerifyModel  string
	VoyageEmbedModel   string

	// Auth settings
	AuthToken string
}

Config holds all application configuration

func Load

func Load() *Config

Load loads configuration from environment variables with sensible defaults

Jump to

Keyboard shortcuts

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