-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a manifest of all autoevals in typescript and fix export error (#43)
The manifest includes a list of all autoevaluators, that currently must be kept up-to-date manually. The export fix clarifies the export as `export type`, because `index.mjs` from `@braintrust/core` is actually empty.
- Loading branch information
Showing
5 changed files
with
62 additions
and
4 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
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,43 @@ | ||
import { Scorer } from "@braintrust/core"; | ||
import { JSONDiff } from "./json"; | ||
import { | ||
Battle, | ||
ClosedQA, | ||
Factuality, | ||
Humor, | ||
Possible, | ||
Security, | ||
Sql, | ||
Summary, | ||
Translation, | ||
} from "./llm"; | ||
import { NumericDiff } from "./number"; | ||
import { EmbeddingSimilarity, Levenshtein } from "./string"; | ||
|
||
export const Evaluators: { | ||
label: string; | ||
methods: Scorer<any, any>[]; | ||
}[] = [ | ||
{ | ||
label: "Model-based classification", | ||
methods: [ | ||
Battle, | ||
ClosedQA, | ||
Humor, | ||
Factuality, | ||
Possible, | ||
Security, | ||
Sql, | ||
Summary, | ||
Translation, | ||
], | ||
}, | ||
{ | ||
label: "Embeddings", | ||
methods: [EmbeddingSimilarity], | ||
}, | ||
{ | ||
label: "Heuristic", | ||
methods: [JSONDiff, Levenshtein, NumericDiff], | ||
}, | ||
]; |
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