Skip to main content

CSV example

Here we create an example CSV file, post it to Expected Parrot using FileStore, and then retrieve it and use it to construct a ScenarioList and an AgentList. To create a CSV file (this step can be skipped and your own file replaced in the following steps):
Creating scenarios:
Creating agents:
These scenarios and agents can now be used with questions and surveys.

PNG example

Here we post an image file to Expected Parrot using FileStore, and then retrieve it and use it to construct a Scenario.
Note:Note that we need to specify the scenario key for the file when we create it (whereas in CSV files the keys are taken from the text of the header row).
We also need to ensure that we have specified a vision model when running the survey (e.g., gpt-4o). Posting a local file to Expected Parrot (replace with your own):
Retrieving the file:
Creating a scenario:
To rename a scenario:
Using an image scenario:

PDF example

Here we save a PDF from the internet, then post it to Expected Parrot and retrieve it using FileStore, and then use it to construct a ScenarioList.
Note:Note that the default scenario keys for a PDF are filename, page and text.
Selecting a file to use:
Posting to Expected Parrot:
Retriving the file:
This is equivalent:
Creating scenarios:
Inspecting the default keys:

Posting to Expected Parrot

Here we post this notebook to Expected Parrot, and show how to update it:
Use the patch() method to update an object at Expected Parrot: