Apply Evaluation Group

Applies an evaluation group to a set of data, creating user evaluation metrics.

Apply Evaluation Group

Applies an evaluation group to a set of data, creating user evaluation metrics.

POST https://api.futureagi.com/model-hub/eval-groups/apply-eval-group/
Bearer
          Click "Try It" to send a request
        

Authentication

This endpoint requires authentication. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Request Body

  • eval_group_id: string The UUID of the evaluation group to apply.

  • filters: object Filters to apply when selecting data.

  • page_id: string Identifier for the page or context where the group is being applied.

  • mapping: object Mapping configuration for the evaluations.

  • deselected_evals: array of string A list of evaluation template UUIDs to exclude from this application.

Example

{
  "eval_group_id": "your-eval_group_id",
  "filters": {},
  "page_id": "your-page_id",
  "mapping": {},
  "deselected_evals": []
}

Responses

200

Evaluation group applied successfully.

400

Bad Request. The evaluation group does not exist for this user.

401

Unauthorized. Authentication credentials were not provided or are invalid.

500

Internal Server Error. An unexpected error occurred.

Code Examples

cURL

curl -X POST "https://api.futureagi.com/model-hub/eval-groups/apply-eval-group/" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"eval_group_id": "your-eval_group_id", "filters": {}, "page_id": "your-page_id", "mapping": {}, "deselected_evals": []}'

Python

import requests

url = "https://api.futureagi.com/model-hub/eval-groups/apply-eval-group/"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
data = {
    "eval_group_id": "your-eval_group_id",
    "filters": {},
    "page_id": "your-page_id",
    "mapping": {},
    "deselected_evals": []
}

response = requests.post(url, headers=headers, json=data)
print(response.json())

JavaScript

const response = await fetch("https://api.futureagi.com/model-hub/eval-groups/apply-eval-group/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "eval_group_id": "your-eval_group_id",
    "filters": {},
    "page_id": "your-page_id",
    "mapping": {},
    "deselected_evals": []
})
});

const data = await response.json();
console.log(data);
Was this page helpful?

Questions & Discussion