feat(generation): select articles in three passes

This commit is contained in:
2026-11-24 00:38:02 +01:00
parent d22f84529f
commit 8022ee0547
27 changed files with 916 additions and 68 deletions

View File

@ -0,0 +1,21 @@
package generation
import (
"context"
"github.com/tradarr/backend/internal/models"
)
// Historical fixture selectors now implement the binary mention port. Their
// returned subset is the yes decision; their ordering cannot change chronology.
func (r *contractRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
return r.Rank(c, m, a, v)
}
func (r *ticket14LayaRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
return r.Rank(c, m, a, v)
}
func (r ticket14DuplicateRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
return r.Rank(c, m, a, v)
}
func (r *ticket4AssetRecorder) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []Candidate) ([]Candidate, error) {
return r.Rank(c, m, a, v)
}