Skip to content

Commit cfb4b67

Browse files
author
Dylan Huang
committed
add experiment/run/row id to table
1 parent cf45835 commit cfb4b67

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

vite-app/src/components/EvaluationRow.tsx

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,38 @@ const RowStatus = observer(
162162
)
163163
);
164164

165+
const ExperimentId = observer(
166+
({ experimentId: experimentId }: { experimentId?: string }) => {
167+
debugger;
168+
if (!experimentId) {
169+
return null;
170+
}
171+
return (
172+
<span className="font-mono text-gray-900 whitespace-nowrap">
173+
{experimentId}
174+
</span>
175+
);
176+
}
177+
);
178+
179+
const RunId = observer(({ runId: runId }: { runId?: string }) => {
180+
if (!runId) {
181+
return null;
182+
}
183+
return (
184+
<span className="font-mono text-gray-900 whitespace-nowrap">{runId}</span>
185+
);
186+
});
187+
188+
const RowId = observer(({ rowId: rowId }: { rowId?: string }) => {
189+
if (!rowId) {
190+
return null;
191+
}
192+
return (
193+
<span className="font-mono text-gray-900 whitespace-nowrap">{rowId}</span>
194+
);
195+
});
196+
165197
const RolloutId = observer(
166198
({ rolloutId: rolloutId }: { rolloutId?: string }) => {
167199
if (!rolloutId) {
@@ -399,6 +431,23 @@ export const EvaluationRow = observer(
399431
/>
400432
</TableCell>
401433

434+
{/* Experiment ID */}
435+
<TableCell className="py-3 text-xs">
436+
<ExperimentId
437+
experimentId={row.execution_metadata?.experiment_id}
438+
/>
439+
</TableCell>
440+
441+
{/* Run ID */}
442+
<TableCell className="py-3 text-xs">
443+
<RunId runId={row.execution_metadata?.run_id} />
444+
</TableCell>
445+
446+
{/* Row ID */}
447+
<TableCell className="py-3 text-xs">
448+
<RowId rowId={row.input_metadata?.row_id} />
449+
</TableCell>
450+
402451
{/* Rollout ID */}
403452
<TableCell className="py-3 text-xs">
404453
<RolloutId rolloutId={row.execution_metadata?.rollout_id} />

vite-app/src/components/EvaluationTable.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ export const EvaluationTable = observer(() => {
164164
<TableHeader>Eval Status</TableHeader>
165165
<TableHeader>Rollout Status</TableHeader>
166166
<TableHeader>Invocation ID</TableHeader>
167+
<TableHeader>Experiment ID</TableHeader>
168+
<TableHeader>Run ID</TableHeader>
169+
<TableHeader>Row ID</TableHeader>
167170
<TableHeader>Rollout ID</TableHeader>
168171
<TableHeader>Model</TableHeader>
169172
<TableHeader>Score</TableHeader>

0 commit comments

Comments
 (0)