@mastra/evals 1.10.9-alpha.0 → 1.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -535,7 +535,7 @@ function createAnswerSimilarityScorer({ model, options = ANSWER_SIMILARITY_DEFAU
535
535
  case "missing": score -= mergedOptions.missingPenalty;
536
536
  }
537
537
  const maxPossibleScore = totalUnits * (1 + mergedOptions.exactMatchBonus);
538
- score = score / maxPossibleScore;
538
+ score /= maxPossibleScore;
539
539
  const contradictionPenalty = analysis.contradictions.length * mergedOptions.contradictionPenalty;
540
540
  score -= contradictionPenalty;
541
541
  const extraInfoPenalty = Math.min(analysis.extraInOutput.length * mergedOptions.extraInfoPenalty, .2);