For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog in
ProductAPI ReferenceChangelogModel Versioning
ProductAPI ReferenceChangelogModel Versioning
    • Authentication
    • API Versioning
  • Workflow Endpoints
    • Run Workflow
    • Workflow Run
    • List Workflow Runs
    • Update Workflow Run
    • Create Workflow
    • Batch Run Workflow
    • Correct Workflow Run (Deprecated)
  • Processor Endpoints
    • Run Processor
    • Get Processor Run
    • Batch Processor Run
    • Create Processor
    • Update Processor
    • Publish Processor Version
    • Processor Version
    • List Processor Versions
  • Parse Endpoints
    • Parse File
  • File Endpoints
    • Upload File
    • Get File
    • List Files
    • Create File (Deprecated)
  • Evaluation Set Endpoints
    • Create Evaluation Set
    • Create Evaluation Set Item
    • Update Evaluation Set Item
    • Bulk Create Evaluation Set Item
  • Objects
    • Block
    • Evaluation Set
    • Evaluation Set Item
    • File
    • Processor
    • Processor Run
    • Batch Processor Run
    • Processor Version
    • Workflow
    • Workflow Run
    • Workflow Run Summary
  • Guides
    • Processor Configs
    • Output Types
    • Bounding Boxes
    • Supported File Types
    • Rate Limits
    • User Roles and Permissions
  • Webhooks
    • Configuration
    • Events
LogoLogo
Book a demoLog in
Evaluation Set Endpoints

Create Evaluation Set

Create a new evaluation set in Extend.
1curl --request POST \
2 --url https://api-prod.extend.app/evaluation_sets \
3 --header 'Authorization: Bearer <token>' \
4 --header 'Content-Type: application/json' \
5 --data '{
6 "name": "<string>",
7 "description": "<string>",
8 "processorId": "<string>"
9}'
Example Response
1{
2 "success": true,
3 "evaluationSet": {
4 "object": "evaluation_set",
5 "id": "ev_2LcgeY_mp2T5yPaEuq5Lw",
6 "name": "Invoice Processing Test Set",
7 "description": "Q4 2023 vendor invoices for accuracy testing",
8 "processorId": "dp_Xj8mK2pL9nR4vT7qY5wZ",
9 "createdAt": "2024-03-21T15:30:00Z",
10 "updatedAt": "2024-03-21T16:45:00Z"
11 }
12}
Was this page helpful?
Previous

Create Evaluation Set Item

Create a new evaluation set item for a given evaluation set.
Next
Built with

Evaluation sets are collections of files and expected outputs that are used to evaluate the performance of a given processor in Extend. This endpoint will create a new evaluation set in Extend, which items can be added to using the Create Evaluation Set item endpoint.

Note: it is not necessary to create an evaluation set via API. You can also create an evaluation set via the Extend dashboard and take the ID from there:

Body

name
stringRequired

The name of the evaluation set.

description
stringRequired

A description of the evaluation set.

processorId
stringRequired

The ID of the processor to associate with this evaluation set. Evaluation sets can in theory be run against any processor, but it is required to associate the evaluation set with a primary processor.

Response

success
boolean

A true or false value for whether the evaluation set was created successfully or not.

evaluationSet
EvaluationSet

An EvaluationSet object representing the newly created evaluation set. See the EvaluationSet object for more details.