Install EDSL
Follow Installation for supported Python versions and environment setup:Construct a survey and run a local test
The example asks for a service improvement and uses a test model configured to return a fixed answer. You can run it immediately without an account or model credentials.answer.feedback value: “Make the export button easier to find.”
The Survey defines the questions, the Model supplies an execution configuration, by() creates a job, and run() returns a Results object. select() extracts a Dataset with the requested answer column. This fixed response tests the workflow; it is not a research observation.
Vary inputs with scenarios
Replace the single free-text task with a classification question applied to several feedback records. Construction alone makes no model calls:job contains three interviews, one for each feedback record. variant_survey demonstrates the alternative of constructing multiple distinct questions within one survey; see Scenarios for when to use each approach.
Log in to Expected Parrot
To use Expected Parrot’s model access from a notebook, run:Choose a language model
Inspect the current model catalog withModel.available() or ep models --text. Select a model appropriate for the task and review costs.
Calling Model() without a name selects your configured default model. You can inspect its name and parameters:
Model() and its provider’s service name as service_name. Replace both placeholders below with the corresponding identifiers from the catalog:
answer.sentiment value from the allowed options. Actual labels depend on the model and inputs; inspect errors and completion counts before analysis.
Inspect and export responses
Extend the study
- Survey logic and piping: branch on answers and supply previous responses as context.
- Creating and varying agents: specify controlled respondent profiles.
- Model comparisons: apply different models to matched inputs.
- Human studies: publish a survey and collect responses from people.
- Saving and sharing objects: preserve a reusable study specification and outputs.
