What are my options for running EDSL surveys?
Here's a quick recap of features for specifying where and how to run your LLM-based surveys in EDSL.
This posts highlights features for choosing where to run your EDSL surveys—on your own computer or at the Expected Parrot server—and how to run them—using your own API keys for language models and/or an Expected Parrot key that provides access to all available models.
Choosing where to run your surveys
EDSL is an open-source Python package that lets you conduct surveys with language models either “locally” on your own computer or “remotely” at the Expected Parrot server.
Getting started
The first steps are the same for either option:
Install the EDSL package. See instructions.
Create a survey. See our starter tutorial and other examples. You can also use our GPT for generating EDSL code.
Then decide whether you want to run your survey locally or remotely.
Please see our docs page for tips on getting started and demo notebooks with example code for many use cases.
Activate remote services
To active remote services, start by logging into your account and navigating to your Settings page. Remote inference is activated by default when you create your account:
While the toggle is on, you can run surveys remotely simply by calling the run()
method on a survey at your workspace:
A table of information about the status of the survey job will appear while it is running, with a link to a progress report. When the job is completed, a link to view the results at Coop will appear as well:
You can also access and analyze the results directly in your workspace.
To run surveys locally instead you can either turn the toggle off or pass a parameter disable_remote_inference=True
to the run()
method:
What happens when you use remote or local inference
When you run a survey locally, your prompts are sent to language models from your computer and responses are delivered back to your computer.
When you run a survey remotely, your prompts are sent from and responses are delivered back to the Expected Parrot server. Details on the survey job and results are automatically added to your Coop account, where you can choose whether to share them and how you want to work with them. Prompts and responses are also added to the universal remote cache. This means that if you re-run any prompts in the survey, or share the survey with anyone else, you will have the option to retrieve the stored responses at no cost. You can also specify that you want to generate fresh responses instead.
The universal remote cache lets you retrieve stored responses for free. Learn more about how it works.
Choosing how to run your surveys
EDSL works with many popular language models you can choose from to generate responses to your surveys, including models from Anthropic, Azure, Bedrock, Deep Infra, DeepSeek, Google, Groq, Mistral, Ollama, OpenAI, Perplexity, Together and Xai. You can check available models, token prices and daily performance on test questions here:
When you run a survey remotely, you can connect to language models using your own API keys from service providers or using a key from Expected Parrot that provides access to all available models.
Note: You must provide your own keys when running surveys locally.
How it works
Your Expected Parrot key is accessible at your Keys page, where you can reset it at any time:
If you have other keys that you want to use when running surveys remotely, you can select the “Add key” button to add them. You can deactivate and delete them at any time:
You can also choose whether to grant access to your keys to other users (without sharing keys directly) and set usage limits.
If you are running surveys locally, you must store your keys on your computer. We recommend doing this using a .env
file. See instructions on managing your keys.
Your Expected Parrot key also provides access to Coop
Your Expected Parrot key also lets you connect to Coop: an integrated platform for creating and sharing AI-based research:
Your account lets you post, download and share content, including surveys, agents, results and notebooks. When you run surveys remotely, results and survey job details are automatically available at your Coop account, where you can choose whether to publish and share them privately with team members or publicly. Results that are generated remotely will also show a verified ✔️ checkmark for reproducibility.
You can also post any other content from your workspace to Coop, whether created locally or remotely. Learn more about methods for working with Coop.