papertrail/app/eval/page.tsx
caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

29 lines
1.1 KiB
TypeScript

import rawResults from "@/tests/fixtures/eval-results.json";
import type { EvalResults } from "./_components/evalTypes";
import { EvalHeader } from "./_components/EvalHeader";
import { EmptyState } from "./_components/EmptyState";
import { PopulatedView } from "./_components/PopulatedView";
import { GroundingNote } from "./_components/GroundingNote";
// The /eval page reports PaperTrail's measured accuracy in the open. It renders ONLY
// numbers produced by `npm run eval` against a live DB (scripts/eval.ts overwrites
// tests/fixtures/eval-results.json with real output). Until that runs, the committed
// placeholder has generatedAt: null and an empty results array, and we show an honest
// empty state rather than any invented metric.
const results = rawResults as EvalResults;
export default function EvalPage() {
const isEmpty = results.results.length === 0 || results.generatedAt === null;
return (
<main className="mx-auto max-w-5xl px-4 py-12">
<EvalHeader />
{isEmpty ? <EmptyState /> : <PopulatedView data={results} />}
<GroundingNote />
</main>
);
}