Skip to Content
UI Kit
Components (172)

Extraction Review

Extraction Review — checking what an agent pulled out of documents, in a single self-contained file built on Source Map.

Open preview
Loading Extraction Review…

Usage

import { ExtractionReview } from "ui-kit/components/extraction-review";

Props

PropTypeDefaultDescription
docs*ReviewDoc[]——
model*{ id: string; name: string; subtitle?: string; }—The agent that reads them – its name and a line under it
casesFailureCase[][]Failure cases saved before
initialDocstring—The document open at first – the first by default
initialFieldstring—The field open at first – by default the selection follows the fields as they fill, until you pick one
reasons{ label: string; lesson: (field: string, source: string) => string; }[]REASONSWhat can go wrong, each with the lesson it teaches
onSaveCase(c: FailureCase, doc: ReviewDoc) => void—Called when a failure case is saved – send it to the agent's memory
classNamestring——

On this page