Retrieve Prompt
models.scores.retrieve_prompt(strmodel_id, ScoreRetrievePromptParams**kwargs) -> ScoreRetrievePromptResponse
GET/models/{modelId}/scores/prompt
Get the prompt scores for the given modelId
Retrieve Prompt
import os
from scenario_sdk import Scenario
client = Scenario(
api_key=os.environ.get("SCENARIO_SDK_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"), # This is the default and can be omitted
)
response = client.models.scores.retrieve_prompt(
model_id="modelId",
)
print(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"
}