https://promptfoo.dev/ logo
Get the json file output that contains the results...
# ❓|questions
s
Hi, so I saw that we save all the results to some database, and there is a function called
promptfoo export
to get the JSON for a particular ID. I wonder how I can automatically get the JSON file for the last evaluated response. Like when I run the evaluate, I also receive this JSON file. It could possibly be a file named
latest.json
since I saw that file when I migrated from an older version to the new one yesterday. Any help would be appreciated, as this is a massive blocker for me. Thank you 🙂
i
You can specify a json output when running the eval, for example
promptfoo eval -o output.json
. Does that work for you?
s
Thank you Ian that was a life saver