Skip to main content

Automated experiment creation and execution using LLM agents

Project description

SynDisco: Automated experiment creation and execution using only LLM agents

A lightweight, simple and specialized framework used for creating, storing, annotating and analyzing synthetic discussions between Large Language Model (LLM) user-agents in the context of online discussions.

This framework is designed for academic use, mainly for simulating Social Science experiments with multiple participants. It is finetuned for heavy server-side use and multi-day computations with limited resources. It has been tested on both simulated debates and online fora.

Warning: Active Development
This project is currently in active development. The API is subject to change at any time without prior notice.
We recommend keeping an eye on updates and version releases if you're using this project in your applications. Any bug reports or feature requests are welcome!.

Usage

Have a look at the online documentation for high-level descriptions, API documentation and tutorials.

Features

Automated Experiment Generation

SynDisco generates a randomized set of discussion templates. With only a handful of configurations, the researcher can run hundreds or thousands of unique experiments.

Synthetic Group Discussion Generation

SynDisco accepts an arbitrarily large number of LLM user-agent profiles and possible Original Posts (OPs). Each experiment involves a random selection of these user-agents replying to a randomly selected OP. The researcher can determine how these participants behave, whether there is a moderator present and even how the turn-taking is determined.

Synthetic Annotation Generation with multiple annotators

The researcher can create multiple LLM annotator-agent profiles. Each of these annotators will process each generated discussion at the comment-level, and annotate according to the provided instruction prompt, enabling an arbitrary selection of metrics to be used.

Native Transformers support

The framework supports most Hugging Face Transformer models out-of-the-box. Support for models managed by other libraries can be easily achieved by extending a single class.

Native logging and fault tolerance

Since SynDisco is expected to possibly run for days at a time in remote servers, it keeps detailed logs both on-screen and on-disk. Should any experiment fail, the next one will be loaded with no intermittent delays. Results are intermittently saved to the disk, ensuring no data loss or corruption on even catastrophic errors.

Installation

You can download the package from PIP:

pip install syndisco

Or build from source:

git clone https://github.com/dimits-ts/syndisco.git
pip install -r requirements.txt
pip install .

If you want to contribute to the project, or modify the library's code you may use:

git clone https://github.com/dimits-ts/syndisco.git
pip install -r requirements.dev.txt
pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syndisco-2.0.0.tar.gz (249.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syndisco-2.0.0-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file syndisco-2.0.0.tar.gz.

File metadata

  • Download URL: syndisco-2.0.0.tar.gz
  • Upload date:
  • Size: 249.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.3

File hashes

Hashes for syndisco-2.0.0.tar.gz
Algorithm Hash digest
SHA256 038bbe39d15ff93f4f26872d28977d92c934c0c593aac65e7b757e8b7658c0bb
MD5 95ba47d5bb44d7320d16b8eb12a664a4
BLAKE2b-256 46b363b035c922f6ba4e819eb29bbf9e2b680a1fb50759da5661433dc0322889

See more details on using hashes here.

File details

Details for the file syndisco-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: syndisco-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.3

File hashes

Hashes for syndisco-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8b3ea8ed3afd1c3c4e585076a734d3840fcab657e92c053a1466d7f05739e6e
MD5 811b56588c7517e7b7f077f14297aec9
BLAKE2b-256 820f41d32dd552604a6ccf7578eac40a8c771604edd7ded30252616f8ff96c26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page