https://promptfoo.dev/ logo
export/import JSON Issues
# ❓|questions
l
I've shared an evaluation with
promptfoo share
and exported the table to JSON after adding some comments. When I try to import this file with
promptfoo import
I've got the following error:
Copy code
Failed to import eval: TypeError: Cannot read properties of undefined (reading 'version')
It seems that the format of this JSON is not importable. Format of the exported JSON:
Copy code
{
  "head": {
    "prompts": [Array of prompt objects],
    "vars": [Array of variable names]
  },
  "body": [Array of test results]
}
Format which I've got when doing
promptfoo export
Copy code
{
  "evalId": "string",
  "results": {
    "version": number,
    "timestamp": "string",
    "prompts": [],
    "results": []
     ...
}
Here is my question: Is it possible to import content from a shared evaluation?