semanticconfig

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModeOff    Mode = "off"
	ModeShadow Mode = "shadow"
	ModeOn     Mode = "on"

	ProviderOllama    Provider     = "ollama"
	IndexBackendExact IndexBackend = "exact"
)

Variables

View Source
var ErrConflictingOverrides = errors.New("semantic enable and disable overrides conflict")

Functions

This section is empty.

Types

type Config

type Config struct {
	Mode                   Mode
	Provider               Provider
	Model                  string
	Dimensions             int
	IndexBackend           IndexBackend
	CandidateDepth         int
	ExactFallbackMaxChunks int
	OllamaBaseURL          string
}

func Resolve

func Resolve(rootDir string) (Config, error)

func ResolveDiagnostic

func ResolveDiagnostic(rootDir string) (Config, error)

ResolveDiagnostic validates configuration shape while allowing an incomplete model/dimensions pair so read-only status can report not_configured.

func (Config) Validate

func (c Config) Validate() error

type IndexBackend

type IndexBackend string

type Mode

type Mode string

func EffectiveMode

func EffectiveMode(configured Mode, forceOn, forceOff bool) (Mode, error)

type Provider

type Provider string

Jump to

Keyboard shortcuts

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