Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/cli/src/commands/results/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export function loadManifestResults(sourceFile: string): EvaluationResult[] {

export interface LightweightResultRecord {
readonly testId: string;
readonly dataset?: string;
readonly target?: string;
readonly experiment?: string;
readonly score: number;
Expand All @@ -209,6 +210,7 @@ export function loadLightweightResults(sourceFile: string): LightweightResultRec
if (isIndexManifestPath(resolvedSourceFile)) {
return parseResultManifest(content).map((record) => ({
testId: record.test_id ?? record.eval_id ?? 'unknown',
dataset: record.dataset,
target: record.target,
experiment: record.experiment,
score: record.score,
Expand Down Expand Up @@ -244,6 +246,7 @@ export function loadLightweightResults(sourceFile: string): LightweightResultRec

records.push({
testId: rawTestId,
dataset: typeof record.dataset === 'string' ? record.dataset : undefined,
target: typeof record.target === 'string' ? record.target : undefined,
score: record.score,
scores: Array.isArray(record.scores)
Expand Down
Loading
Loading