Suggest the ranking question from a dataset's items (free, about 3 seconds at most)
const url = 'https://api.supposing.app/v1/rubrics/suggest';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"dataset_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Successful Response
A ranking question for a dataset, suggested from its items. Use it as a run’s ranking.rubric.
object
One plain question, e.g. ‘Which application makes the strongest case for funding?’. ‘Which is better overall?’ when nothing better could be suggested.
False when question is the fallback (no model reachable, too slow, or no usable answer).
Example generated
{ "question": "example", "suggested": true, "template_id": "example"}Client error. Branch on code; show message and hint.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
For plan_limit_* codes: the limit, usage and upgrade.
Which plan limit a plan_limit_* error hit, and the way up.
object
Datasets, items_per_dataset, chars_per_dataset or runs_per_month.
The workspace’s plan: free (Pay as you go) or subscription.
Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.
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.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
For plan_limit_* codes: the limit, usage and upgrade.
Which plan limit a plan_limit_* error hit, and the way up.
object
Datasets, items_per_dataset, chars_per_dataset or runs_per_month.
The workspace’s plan: free (Pay as you go) or subscription.
Current usage; for items_per_dataset and chars_per_dataset, the size the dataset would have.
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" }}