-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25607d2
commit 5f5571e
Showing
3 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { evaluate } from "../evaluation/runner.js"; | ||
|
||
test("evaluate can evaluate", async () => { | ||
const dummyDatasetName = "ds-somber-yesterday-36"; | ||
const evalFunc = (input: Record<string, any>) => { | ||
console.log("__input__", input); | ||
return input; | ||
}; | ||
// const evalRunnable = new RunnableLambda({ func: (input: Record<string, any>) => { | ||
// console.log("input", input); | ||
// }}); | ||
|
||
const evalRes = await evaluate(evalFunc, dummyDatasetName); | ||
console.log(evalRes.results); | ||
expect(evalRes.processedCount).toBeGreaterThan(0); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters