v4
latestOpenAPI 3.1.02026-08-019681,1012.0 MBscorer-feedback
Generate Prompt
Generate improved scorer prompt using Autotune (CLHF).
This endpoint:
- Fetches all feedback items from the active queue with ClickHouse context
- Assembles the current metric system prompt
- Constructs AutotuneInput with annotated examples
- Queues a background job to the runners service
- Returns task_id for polling
The API prepares all data internally - no request body needed.
Validation:
- Scorer exists and user has access
- Active queue exists in 'pending' state
- Queue has at least one feedback item
Response:
- 202 Accepted with task_id for polling
Errors:
- 404 - Scorer not found or no active pending queue exists
- 409 - Queue is already locked (generating or reviewing)
- 422 - Scorer missing required configuration or queue has no feedback items
post/feedback-queues/scorer/{scorer_id}/generate-prompt
Path parameters
scorer_idstring uuid4 required
Response
Successful Response