Improve a metric using feedback from test sets. Returns improved metric configuration. Use the Update Metric endpoint to save changes.
API Key Authentication. It should be included in the header of each request.
ID of the metric to process feedbacks for
List of test set IDs to process feedbacks from
1Optional metric type
basic - Basic (Deprecated in favor of LLM Judge)custom_prompt - Custom Prompt ( Deprecated in favor of LLM Judge)custom_code - Custom Codellm_judge - LLM Judgebasic, custom_prompt, custom_code, llm_judge 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.
Returns progress_id for tracking progress