https://promptfoo.dev/ logo
Check label, confidence score in JSON response fro...
# ❓|questions
o
My GPT JSON response looks like this, {\n \"Apparel\": 0.9,\n \"Electronics\": 0.3,\n } My test cases are in a csv file and passed to promptfoo via the yaml file. What assertion should I use to check if Apparel has confidence value greater than 0.5 ? How do I use an assertion in __expected1 column in the CSV?