Import from file
Load dataset directly from supported files
If you are maintaining your test dataset in a file, chances are you can import it directly into Empirical.
Import from Google Sheets
Specify a path to the Google sheet in the configuration file. If your file has
multiple sheets, be sure to use the url that points to the correct sheet (specified with the gid
query
parameter).
Refer to our chatbot example which uses this dataset.
The sheet should contain column headers. The rows of the file are converted into dataset inputs with column header names as the name of the parameter. For example:
The above table in the sheet gets converted into the following dataset object:
The above conversion enables you to create prompt with placeholders. For example:
Import from JSONL file
Specify a path to the JSONL file. Each line of the file should be a valid JSON object. On import, the keys of this JSON will be converted into inputs of the sample.
If using relative paths, the path is treated relative to the configuration file.
Import from JSON
Specify a path to the JSON file. The file should contain array of objects. On import, the object keys will be converted into inputs of the sample.
If using relative paths, the path is treated relative to the configuration file.
Refer to tool call example which uses this dataset.
Import from CSV
Specify a path to the CSV file in the empiricalrc.json
. If using relative paths, the path is treated
relative to the configuration file.
The CSV file should contain headers.
The lines of the file are converted into dataset inputs with column header names as the name of the parameter. For example:
The above CSV gets converted into the following dataset object:
The above conversion enables you to create a prompt with placeholders. For example: