Overview of Evaluate
Use Evaluate in the LlamaParse web app to score Parse tiers and settings, or Extract tiers, on your own documents against a ground truth you review, then compare the runs by score and cost.
Evaluate scores Parse and Extract on your own documents. You put documents in a set and review a ground truth for each one. Every run on the set is scored against that ground truth and shows what it cost, so you can find the cheapest tier that still reads your documents correctly.
Evaluate is in the web app, under Evaluate in a project’s sidebar. It isn’t available through the API.
How an Evaluate set works
Section titled “How an Evaluate set works”A set is a group of documents. The ground truth belongs to each document, and the score belongs to the set. A set evaluates either Parse or Extract:
| Parse set | Extract set | |
|---|---|---|
| Ground truth per document | The document’s content, element by element: text, tables, charts, headings, and where each one sits on the page | A value for every field in the set’s schema |
| A run tests | One Parse tier with its settings | One Extract tier |
| Score | Set score, out of 100 | Value F1, out of 100 |
A set holds up to 1,000 documents, as PDF, DOCX, PPTX, or image files. Creating a set runs a job on every document to draft its ground truth, billed like any other job, and the form shows an estimate first. Each run is billed at the tier it uses, and the run panel shows its estimate before you start it.
Uploaded documents are kept in the project’s Files, in a folder named
Eval · <set name>, and are billed as retained storage.
Delete set…, in the set’s actions menu, removes the set’s documents, ground
truth, and runs, but not these files, so remove them in Files when you’re done.
Evaluate Parse
Section titled “Evaluate Parse”Create a Parse evaluation set
Section titled “Create a Parse evaluation set”- In Evaluate, select New evaluation, then Evaluate parse.
- Name the set, or leave the name blank, and drop in its documents.
- Select Create. Each document gets a high-accuracy Parse job that drafts its ground truth.
Or pick a set under Or start from a set of ours instead. Its ground truth is already drafted, so it costs nothing and opens on the review.
Review a Parse ground truth
Section titled “Review a Parse ground truth”The review opens each document beside its drafted reading, one page at a time. Elements the Parse job was unsure about are flagged Low confidence, and the Low confidence filter narrows the list to them. Confirm or correct each one before Next page moves on. Anything else you leave unchanged is kept as correct.
| Action | What it does |
|---|---|
| Edit an element’s text | Corrects the reading. For a table, Edit the whole table opens every cell. |
| Confirm this reading | Marks the element as checked without changing it. |
| Read this region | Reads the element’s area of the page again. |
| Draw its box on the page | Sets where the element sits on the page. |
| Remove from the ground truth | Drops the element. |
| Mark missing | Adds content the reading left out. Draw a box around it on the page. |
On a document’s last page, Next document saves it and opens the next one, so you can stop and come back later. After the last document, Finish review opens the Review summary, which counts each document’s elements, additions, and removals. Lock ground truth finishes the review and opens the set’s runs.
A Parse set can run before its review is finished. Such a run scores only the documents whose review is saved and leaves the rest out.
Run a Parse configuration
Section titled “Run a Parse configuration”On the set’s Runs tab, select New run. The panel takes a Parse tier, the cost optimizer, and the input, processing, and output options under Advanced settings.
- Start run runs the configuration over the set. Run and keep open starts it and leaves the panel up for the next configuration.
- Load config… fills the panel from a saved Parse configuration, and Save as config… saves the panel’s settings as one.
- Leave Granular boundary boxes on to see where each miss is on the page. Without it, a run’s misses are counted but can’t be drawn.
Parse scores
Section titled “Parse scores”Each document is scored out of 100 on five dimensions:
| Dimension | What it checks |
|---|---|
| Tables | Every cell in its row and column |
| Charts | The values read off each chart |
| Text | Words and numbers as written, in reading order |
| Formatting | Headings, bold, and structure kept |
| Position | Each element found where it sits on the page |
A document’s score is the average of the dimensions it has. A dimension with nothing to check, such as Charts on a document without charts, shows n/a and doesn’t count. The set score is the average of the document scores.
Open a document from a run to see how it scored. The output has two tabs:
- Overview shows the document’s score, its dimensions, and how many misses the run had. Hover over a dimension to see how its score was worked out.
- Diff shows the run’s output against the ground truth, with every miss marked in the reading and on the page. Select a dimension on Overview to see only the misses that count against it.
Evaluate Extract
Section titled “Evaluate Extract”Create an Extract evaluation set
Section titled “Create an Extract evaluation set”- In Evaluate, select New evaluation, then Evaluate extract.
- Name the set and drop in its documents.
- Give the set a data schema. Build it in the editor, select Upload JSON to load a JSON Schema file, or select Use an existing schema to copy the schema of another Extract evaluation set or a saved Extract configuration.
- Select Continue. Each document is parsed, then a high-accuracy Extract job reads its values with the schema, one document at a time.
Or pick one under Or start from a sample set, which comes with its schema and locked ground truth and opens on runs.
Review an Extract ground truth
Section titled “Review an Extract ground truth”The review shows each document beside the value read for every field. Correct a wrong value in place, and use Add row to add a row a list is missing. If a document’s values couldn’t be read, Read again retries it. Each retry is billed as a new Extract job.
Values read with low confidence are flagged Low confidence. Confirm or correct each one before you lock the set.
Next document saves the document and opens the next one. After the last document, Finish review opens the Review summary, which counts each document’s fields, edits, and confirmations. Lock ground truth locks the set once every document has been read.
Run an Extract tier
Section titled “Run an Extract tier”On the set’s Runs tab, select New run and pick an Extract tier. Every run uses the schema locked with the ground truth, which View shows, so the tier is the only thing that changes between runs. A tier’s price per page includes the Parse job that Extract runs first.
Start run runs the tier over the set. Run and keep open starts it and leaves the panel up for the next tier.
Extract scores
Section titled “Extract scores”Each value a run returns is compared with the ground truth and marked:
| Mark | Meaning |
|---|---|
| Right | Matches the ground truth |
| Wrong value | Differs from the ground truth |
| Missing | The run returned nothing for it |
| Invented | The run returned a value where the ground truth is empty |
A document’s Value F1 is the F1 of those values, out of 100. Each field, and each cell of a list, counts once. The set’s Value F1 is the average of its documents.
Compare runs in an Evaluate set
Section titled “Compare runs in an Evaluate set”The Runs tab lists every run with its score, Change against the previous run of the same configuration, and Cost. The best run is marked Best. A run that scored only part of the set, or was scored against a ground truth corrected since, isn’t counted for Best.
- Run again repeats a configuration. Its row then shows the average of its runs, with each run under it.
- Compare on one run, then Against this on another, shows the change in score document by document.