Retrieve Prompt
client.models.scores.retrievePrompt(stringmodelID, ScoreRetrievePromptParams { projectId, prompt } query?, RequestOptionsoptions?): ScoreRetrievePromptResponse { details, modelId, score, 2 more }
GET/models/{modelId}/scores/prompt
Retrieve Prompt
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.models.scores.retrievePrompt('modelId');
console.log(response.details);{
"details": {
"captionsSimilarity": {
"mean": 0,
"median": 0,
"min": 0
},
"embeddingSimilarity": 0,
"promptsSimilarity": {
"mean": 0,
"median": 0,
"min": 0
}
},
"modelId": "modelId",
"score": 0,
"status": "complete",
"syntaxError": "Prompt weight should be between 0 and 2"
}Returns Examples
{
"details": {
"captionsSimilarity": {
"mean": 0,
"median": 0,
"min": 0
},
"embeddingSimilarity": 0,
"promptsSimilarity": {
"mean": 0,
"median": 0,
"min": 0
}
},
"modelId": "modelId",
"score": 0,
"status": "complete",
"syntaxError": "Prompt weight should be between 0 and 2"
}