https://promptfoo.dev/ logo
specify assertion properties in CSV
# ❓|questions
n
When defining tests via CSV, can you specify the assertion properties as part of the __expected value?
i
Generally yes, although it depends on the property. Syntax is:
Copy code
name(threshold): value
For example:
Copy code
similar(0.7): foobar