Wire corrections system for LLM output training data #31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Wire the shared
make_corrections_router()fromcircuitforge-coreinto this product so users can submit thumbs-up/down feedback and corrections on LLM output. This feeds the Avocet SFT training pipeline.Reference implementation
Linnet has the full reference implementation:
linnet/app/db.py— SQLite layer withget_dbFastAPI dependencylinnet/app/migrations/001_corrections.sql— corrections table schemalinnet/app/api/corrections.py— wiresmake_corrections_router(get_db, product="linnet")linnet/frontend/src/components/CorrectionWidget.vue— thumbs up/down + correction form + praise formSteps
app/db.py) if not already present, withget_dbdependency and migration runnerapp/api/corrections.pywiringmake_corrections_router(get_db=get_db, product="<slug>")main.pyat prefix/corrections/correctionsto the Vite proxy config (frontend dev server)CorrectionWidget.vueinto the relevant output-display componentopted_in=True(no user text to consent to); praise text goes incontext.praiseNotes
opted_in=1rows export viaGET /corrections/export(JSONL for Avocet SFT pipeline)corrected_outputmust be non-empty forrating=down; empty is valid forrating=upcircuitforge_core.api.make_corrections_routeravailable from v0.9.1+