Scorer evaluates a model's joint log-probability of each candidate continuation given a shared prompt. Implemented by NewScorer over a model-loaded backend; the router's score classifier consumes this for multi-label policy selection.
| 44 | // model-loaded backend; the router's score classifier consumes this |
| 45 | // for multi-label policy selection. |
| 46 | type Scorer interface { |
| 47 | Score(ctx context.Context, prompt string, candidates []string) ([]CandidateScore, error) |
| 48 | } |
| 49 | |
| 50 | // NewScorer binds (loader, modelConfig, appConfig) into a Scorer. The |
| 51 | // underlying backend is resolved lazily on the first Score call. |
no outgoing calls
no test coverage detected