Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConversationEvaluator ¶
type ConversationEvaluator struct {
// contains filtered or unexported fields
}
ConversationEvaluator runs a two-phase evaluation on a full conversation:
Phase A: per-turn judges (relevance, coherence, completeness) → turn_avg Phase B: holistic judge over all turns → holistic_score final_score = computed by scoringFormula (linear/geometric/min)
func NewConversationEvaluator ¶
func NewConversationEvaluator( turnRunner *judge.JudgeRunner, holisticJudge judge.Judge, repository storage.Repository, holisticWeight float64, passThreshold float64, reviewThreshold float64, scoringFormula string, logger *zerolog.Logger, ) *ConversationEvaluator
func (*ConversationEvaluator) Execute ¶
func (e *ConversationEvaluator) Execute(ctx context.Context, req models.ConversationEvaluationRequest) models.ConversationEvaluationResult
Execute evaluates a full conversation and returns the result.
Click to show internal directories.
Click to hide internal directories.