Skip to main content

Cognitive testing

In this example we use the tools to evaluate some draft survey questions and suggest improvements.
Create a relevant persona and assign it to an agent:
Identify a set of texts for review (these can also be imported):
Construct a question about the texts, which will be added as a parameter of the question individually:
Create “scenarios” of the question with the texts as paraemeters:
Check available language models:
Select a language model (if no model is specified, the default model is used):
Administer the survey:
List the components of the results that are generated:
Print select components of the results:

Qualitative reviews

In this example we use a set of hypothetical customer service tickets and prompt a model to extract a set of themes that we could use in follow-on questions (e.g., as a set of options to multiple choice questions).
Create an agent with a relevant persona:
Create a question about the texts:
Add the texts to the question:
Generate results:
Inspect the results:

Data labeling

In this example we prompt an LLM to rating the seriousness of tickets about safety issues. See this notebook as well for a more complex data labeling exercise: Data Labeling Agents.

Creating new methods

We can use the question prompts to create new methods, such as a translator:

Posting to Expected Parrot