Skip to content

Suggest the ranking question from a dataset's items (free, about 3 seconds at most)

POST
/v1/rubrics/suggest
curl --request POST \
--url https://api.supposing.app/v1/rubrics/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Use it to fill the question of a first ranking. One short call on our key, never billed; the answer is kept on the dataset. On any failure it answers ‘Which is better overall?’ with suggested false.

Media typeapplication/json
RubricSuggestIn
object
dataset_id
required
Dataset Id
string format: uuid

Example generated

{
"dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Successful Response

Media typeapplication/json
RubricSuggestion

A ranking question for a dataset, suggested from its items. Use it as a run’s ranking.rubric.

object
question
required
Question

One plain question, e.g. ‘Which application makes the strongest case for funding?’. ‘Which is better overall?’ when nothing better could be suggested.

string
suggested
required
Suggested

False when question is the fallback (no model reachable, too slow, or no usable answer).

boolean
template_id
required
Template Id

A rubric template that fits, when one does. Null today.

Any of:
string

Example generated

{
"question": "example",
"suggested": true,
"template_id": "example"
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string
limit

For plan_limit_* codes: the limit, usage and upgrade.

Any of:
LimitInfo

Which plan limit a plan_limit_* error hit, and the way up.

object
name
required
Name

Datasets, items_per_dataset, chars_per_dataset or runs_per_month.

string
plan
required
Plan

The workspace’s plan: free (Pay as you go) or subscription.

string
limit
required
Limit
integer
used
required
Used

Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.

integer
upgrade_url
required
Upgrade Url

The web page that starts the Subscription; null while it can’t be bought here (then the hint says whom to write to).

Any of:
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
],
"limit": {
"name": "example",
"plan": "example",
"limit": 1,
"used": 1,
"upgrade_url": "example"
}
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string
limit

For plan_limit_* codes: the limit, usage and upgrade.

Any of:
LimitInfo

Which plan limit a plan_limit_* error hit, and the way up.

object
name
required
Name

Datasets, items_per_dataset, chars_per_dataset or runs_per_month.

string
plan
required
Plan

The workspace’s plan: free (Pay as you go) or subscription.

string
limit
required
Limit
integer
used
required
Used

Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.

integer
upgrade_url
required
Upgrade Url

The web page that starts the Subscription; null while it can’t be bought here (then the hint says whom to write to).

Any of:
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
],
"limit": {
"name": "example",
"plan": "example",
"limit": 1,
"used": 1,
"upgrade_url": "example"
}
}