Documentation
¶
Overview ¶
Package compare provides multi-provider benchmarking: run the same prompt against several AI providers simultaneously and compare results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JudgePrompt ¶
JudgePrompt builds the evaluation prompt for an AI judge.
func ParseJudgeOutput ¶
ParseJudgeOutput parses the judge's structured output and annotates entries. Expected format per line: SCORE <N> <provider>: <feedback>
Types ¶
type Entry ¶
type Entry struct {
ProviderName string
Model string
Output string
Duration time.Duration
InputTokens int
OutputTokens int
CostUSD float64
CostKnown bool
Err error
// JudgeScore is 0–10, set only when a judge provider is used.
JudgeScore int
JudgeFeedback string
}
Entry holds the result (or error) from a single provider.
Click to show internal directories.
Click to hide internal directories.