Skip to content
/ edsl Public
forked from expectedparrot/edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.

License

Notifications You must be signed in to change notification settings

arulmabr/edsl

This branch is 3 commits ahead of, 574 commits behind expectedparrot/edsl:main.

Folders and files

NameName
Last commit message
Last commit date
Jan 4, 2025
Jan 7, 2024
Jan 5, 2025
Jan 7, 2025
Jul 21, 2024
Dec 31, 2024
Dec 22, 2024
Oct 16, 2024
Jan 3, 2025
Jun 18, 2024
Dec 20, 2024
May 14, 2024
Mar 18, 2024
Nov 26, 2024
Jan 2, 2024
Dec 31, 2024
Jan 4, 2025
Oct 26, 2024
Jan 7, 2025
Jan 7, 2025

Repository files navigation

Expected Parrot Domain-Specific Language

edsl.png

The Expected Parrot Domain-Specific Language (EDSL) package lets you conduct computational social science and market research with AI. Use it to design surveys and experiments, simulate responses with large language models, and perform data labeling and other research tasks. Results are formatted as specified datasets and come with built-in methods for analyzing, visualizing, and sharing.

πŸ”— Links

🌎 Hello, World!

A quick example:

# Import a question type
from edsl import QuestionMultipleChoice

# Construct a question using the question type template
q = QuestionMultipleChoice(
    question_name="example_question",
    question_text="How do you feel today?",
    question_options=["Bad", "OK", "Good"]
)

# Run it with the default language model
results = q.run()

# Inspect the results 
results.select("example_question")

Output:

┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ answer.example_question ┃
┑━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ Good                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’» Requirements

πŸ’‘ Contributions, feature requests & bugs

Interested in contributing? Want us to add a new feature? Found a bug for us to squash? Please send us an email at info@expectedparrot.com or message us at our Discord channel..

About

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.8%
  • Jinja 0.6%
  • HTML 0.6%
  • Makefile 0.4%
  • Batchfile 0.3%
  • CSS 0.2%
  • Other 0.1%