Skip to main content
POST
Upload Benchmark

Authorizations

Authorization
string
header
required

Your Nugen API key, sent as a Bearer token

Body

multipart/form-data

Multipart form to upload a benchmark file.

file
file
required

JSON file containing benchmark questions

document_id
string
required

Document ID that this benchmark is based on

Example:

"document_01k4x9m2p7q3r5s8"

name
string | null

Benchmark name. Defaults to the benchmark id if omitted.

Example:

"Contract Clause Review"

description
string | null

Benchmark description

Example:

"Benchmark for contract clause extraction"

Response

Returns the details of the uploaded benchmark including its unique identifier, name, status, and the list of samples with expected responses

Acknowledgement of an uploaded benchmark.

benchmark_id
string
required

Unique identifier for the benchmark

Example:

"benchmark_01k4x9m2p7q3r6a1"

benchmark_name
string
required

Name of the benchmark

Example:

"My Benchmark"

status
enum<string>
required

Status of the benchmark

Available options:
QUEUED,
PROCESSING,
READY,
FAILED,
STOPPED
Example:

"PROCESSING"

n_samples
integer
required

Number of samples in the benchmark

Example:

10

samples
BenchmarkSample · object[]

List of uploaded benchmark samples