feat(generation): score articles with selected relevance model (#48)

This commit is contained in:
2026-11-25 18:09:36 +01:00
parent c5b8d0d4da
commit 90dd2a65d2
53 changed files with 1639 additions and 105 deletions

View File

@ -53,7 +53,7 @@ func TestPreferencesPersistPerUserPostgres(t *testing.T) {
if _, err = db.Exec(string(migration)); err != nil {
t.Fatal(err)
}
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN summary_model_id UUID NULL, ADD COLUMN summary_prompt_token_budget INT NOT NULL DEFAULT 250000`); err != nil {
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN ranking_model_id UUID, ADD COLUMN summary_model_id UUID NULL, ADD COLUMN summary_prompt_token_budget INT NOT NULL DEFAULT 250000`); err != nil {
t.Fatal(err)
}
// The two accounts predate migration 11: defaults must backfill both,