import { useState } from 'react' function score(v) { if (v == null) return '—' return `${(v * 100).toFixed(0)}%` } function scoreColor(v) { if (v == null) return 'text-gray-300' if (v >= 0.8) return 'text-emerald-600' if (v >= 0.6) return 'text-yellow-600' return 'text-red-500' } function Row({ item, idx }) { const [open, setOpen] = useState(false) return ( <>
Generated answer
{item.answer}
Ground truth
{item.ground_truth}
Correctness judge note
{item.correctness_reason}
Click any row to see generated answer vs ground truth
| # | Query | Correctness | Relevancy | Recall | P@5 | Latency |
|---|