https://promptfoo.dev/ logo
Running test from typescript and using web viewer
# ❓|questions
g
I'm not using the cli but the promptfoo.evaluate from within typescript. If I run prompfoo view it cant find any evals. the output in html unfortunately lacks the nice graphs filters. Any config I overlooked to make it find the eval?
figure it out: "outputPath": "~/.promptfoo/output/latest.json" feels a bit hacky though
g
there is an easier way, you can add
writeLatestResults: true
to the first argument to
promptfoo.evaluate
g
ah that was a lot easier than what I came up with, thx!
i
Thanks all, just updated the docs to include
writeLatestResults
on the node-package and reference pages