Skip to content

collect-intel/osccai-simulation

Repository files navigation

OSCCAI Simulation

This application simulates the core functionality of the "Collective Constitution Creator" process (adapted from Pol.is, a real-time survey and opinion analysis tool), part of the Open-Source Collective Constitutional AI project. It demonstrates how this tool analyzes participant opinions on various comments to identify consensus groups, and how these groups can be used to create a constitution.

Features

  • Simulate participants voting on comments
  • Visualize opinion clusters using Principal Component Analysis (PCA)
  • Adjust simulation parameters in real-time
  • Interactive Vote Matrix and PCA Projection

Getting Started

Prerequisites

  • Node.js (v14 or later recommended)

    • To install Node.js, visit the official website: https://nodejs.org/
    • Download and run the installer for your operating system
    • Follow the installation wizard, accepting the default settings
    • After installation, open a terminal/command prompt and type node -v to verify the installation
  • npm (comes with Node.js)

    • npm is automatically installed with Node.js
    • To verify npm installation, open a terminal/command prompt and type npm -v

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/osccai-simulation.git
    cd osccai-simulation
    
  2. Install dependencies:

    npm install
    

Running the Application

  1. Start the development server:

    npm start
    
  2. Open your browser and navigate to http://localhost:3000

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

Releases

No releases published

Packages

No packages published