https://promptfoo.dev/ logo
Grading only if successful output from model for a...
# ❓|questions
q
Is there a way to only run llm rubric assert if the output from llm prompt run is successful? i have setup llm ruberic as assert for output from custom provider, but when the provider returns error message - it still runs assert using llm ruberic -- which i think is wasteful. Has anyone done conditional assert? please share any examples if it is possible.
d
i'm searching for answer to this question too I would like to run some metrics when a condition is met