---
title: "Improve a metric from feedback"
method: POST
path: "/test_framework/metric-reviews/process_feedbacks/"
tags: ["test_framework"]
---

# Improve a metric from feedback

`POST /test_framework/metric-reviews/process_feedbacks/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/test_framework/metric-reviews/process_feedbacks/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer

Improve a metric using feedback from test sets. Returns improved metric configuration. Use the Update Metric endpoint to save changes.

## Request body

- ProcessFeedbacksRequest
  - `metric_id` integer, required: ID of the metric to process feedbacks for
  - `metric_type` 'basic' | 'custom_prompt' | 'custom_code' | 'llm_judge': Optional metric type * `basic` - Basic (Deprecated in favor of LLM Judge) * `custom_prompt` - Custom Prompt ( Deprecated in favor of LLM Judge) * `custom_code` - Custom Code * `llm_judge` - LLM Judge
  - `test_set_ids` integer[]: Test set IDs whose feedback drives the optimization. If omitted, defaults to every test set already added to this metric's Lab.
  - `simplified_prompt` string: Simplified prompt to use as initial prompt for optimization. If provided, the optimizer will start from this prompt instead of the metric's original description.
  - `skip_evaluation` boolean: If true, skip running LLM evaluations on test sets after optimization. This speeds up the process but won't show evaluation results.

## Response `200`

Returns progress_id for tracking progress

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/test_framework/metric-reviews/process_feedbacks/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
