feat(ranking): add safe article ranking and limits

Rank candidate articles using the selected preference and enforce global and per-source article limits.

Refs #6

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 19:54:17 +01:00
parent 50bde816ed
commit a4d63015d4
13 changed files with 918 additions and 138 deletions

View File

@ -7,8 +7,9 @@ import (
// GenOptions permet de contrôler le comportement de génération par appel.
type GenOptions struct {
Think bool // active le mode raisonnement (Qwen3 /think)
NumCtx int // taille du contexte KV (0 = valeur par défaut du provider)
JSONMode bool // request structured JSON output when supported
Think bool // active le mode raisonnement (Qwen3 /think)
NumCtx int // taille du contexte KV (0 = valeur par défaut du provider)
}
type Provider interface {