autoevals
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -607,5 +607,5 @@ "use strict"; | ||
); | ||
const baseScores = await Promise.all( | ||
const baseScores = (await Promise.all( | ||
allKeys.map((k) => jsonDiff(o1[k], o2[k], stringScorer, numberScorer)) | ||
); | ||
)).filter((s) => s !== null); | ||
return baseScores.reduce((acc, s) => acc + s, 0) / baseScores.length; | ||
@@ -616,7 +616,7 @@ } else if (isArray(o1) && isArray(o2)) { | ||
} | ||
const baseScores = await Promise.all( | ||
const baseScores = (await Promise.all( | ||
Array.from({ | ||
length: Math.min(o1.length, o2.length) | ||
}).map((_, i) => jsonDiff(o1[i], o2[i], stringScorer, numberScorer)) | ||
); | ||
)).filter((s) => s !== null); | ||
return baseScores.reduce((acc, s) => acc + s, 0) / Math.max(o1.length, o2.length); | ||
@@ -623,0 +623,0 @@ } else if (typeof o1 === "string" && typeof o2 === "string") { |
{ | ||
"name": "autoevals", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"description": "Universal library for evaluating AI models", | ||
@@ -44,3 +44,3 @@ "main": "./jsdist/index.js", | ||
"dependencies": { | ||
"@braintrust/core": "^0.0.7", | ||
"@braintrust/core": "^0.0.8", | ||
"@types/node": "^20.10.5", | ||
@@ -47,0 +47,0 @@ "compute-cosine-similarity": "^1.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63155
+ Added@braintrust/core@0.0.8(transitive)
- Removed@braintrust/core@0.0.7(transitive)
Updated@braintrust/core@^0.0.8