🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

autoevals

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoevals - npm Package Compare versions

Comparing version

to
0.0.42

8

jsdist/index.js

@@ -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