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

@ -15,7 +15,7 @@ import (
func TestTicket39PromptBudgetMigrationAndAccountAPIIsolatedPostgres(t *testing.T) {
db := ticket14DB(t)
if _, err := db.Exec(`CREATE TABLE users(id UUID PRIMARY KEY,language TEXT DEFAULT 'fr',ranking_mode TEXT DEFAULT 'title',summary_model_id UUID,updated_at TIMESTAMPTZ DEFAULT NOW()); INSERT INTO users(id) VALUES('00000000-0000-0000-0000-000000003901'),('00000000-0000-0000-0000-000000003902')`); err != nil {
if _, err := db.Exec(`CREATE TABLE users(id UUID PRIMARY KEY,language TEXT DEFAULT 'fr',ranking_mode TEXT DEFAULT 'title',ranking_model_id UUID,summary_model_id UUID,updated_at TIMESTAMPTZ DEFAULT NOW()); INSERT INTO users(id) VALUES('00000000-0000-0000-0000-000000003901'),('00000000-0000-0000-0000-000000003902')`); err != nil {
t.Fatal(err)
}
migration, err := os.ReadFile("../database/migrations/000020_summary_prompt_budget.up.sql")