Evaluations
Configure Custom Scoring
PATCH
Configure the score card for an evaluation pipeline. Use this endpoint to choose the columns that contribute to the score and, optionally, provide custom Python or JavaScript scoring code.Documentation Index
Fetch the complete documentation index at: https://promptlayer-add-demo-projects.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Behavior Notes
- Custom code receives a
datavariable containing evaluation rows and must return an object with at least ascorekey from 0 to 100. - If no custom code is provided, PromptLayer uses default scoring over the selected columns.
- Updating a blueprint affects future runs; completed runs recalculate their score after the score card changes.
Related
Authorizations
Path Parameters
ID of the evaluation pipeline to update.
Body
application/json
Score-card configuration payload.
Column names to include in the score calculation.
Optional custom Python or JavaScript scoring code. The code receives data and must return an object with a score key.
Language used by the custom scoring code.
Available options:
PYTHON, JAVASCRIPT 
