Documentation
¶
Overview ¶
Package sweep runs an eval harness over a matrix of memmy configs to find a parameter setting that scores best on a labeled query set.
A sweep YAML file looks like:
base: configs/baseline.yaml # optional path
matrix:
- name: low-decay
overrides:
NodeLambda: 4.0e-8
- name: high-reinforce
overrides:
NodeDelta: 2.5
Each entry produces a fresh memmy db, runs the same query battery, and writes per-config metrics under runs/<sweep_id>/<config_name>/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyServiceOverrides ¶
func ApplyServiceOverrides(base memmy.ServiceConfig, overrides map[string]any) (memmy.ServiceConfig, error)
ApplyServiceOverrides starts from a base ServiceConfig and applies the overrides map by JSON-marshalling the base, merging the overrides into the resulting object, then unmarshalling back. This keeps the sweep YAML free of typed knowledge of every field while still type-checking via the ServiceConfig schema on the way back.
Types ¶
Click to show internal directories.
Click to hide internal directories.