Nous.Eval.Store.SQLite (nous v0.21.1)

Copy Markdown View Source

SQLite-backed Nous.Eval.Store using exqlite.

{:ok, store} = Nous.Eval.Store.SQLite.init(path: "priv/eval.sqlite3")

Runs are rows of nous_eval_runs: the full run as Nous.Eval.Codec.encode_run_json/1 text in payload, its summary as Nous.Eval.Codec.encode_summary_json/1 text in summary, and the columns list_runs/2 filters and sorts on. Baselines are rows of nous_eval_baselines, only ever inserted. Judge calibrations are rows of nous_eval_calibrations (Nous.Eval.Codec.encode_calibration_json/1 text); the latest row for a fingerprint id wins. Profiles are rows of nous_eval_profiles (Nous.Eval.Codec.encode_profile_json/1 text in payload, unique by id and by (name, version)), profile labels rows of nous_eval_profile_labels, only ever inserted.

Options

  • :path - database file path (default: ":memory:")