Giter Site home page Giter Site logo

global-brain-experiments's Introduction

Global Brain Algorithm Validation Experiments (Archived)

Note

This repository contains early validation experiments for the Global Brain algorithm. This repository will be archived because we continue experimentation elsewhere: You can see current development and experimentation here.

GPT Agent Simulation

Caution

Please read the code before you add your OpenAI API key and execute anything. This model makes calls to the OpenAI API, so a cost is involved in running this model. It is currently very small, but you should verify how the module makes calls to the API anyways.

The src folder contains a Julia module that simulates agents with different personas generated with the OpenAI API. These agents can be used in an agent-based model that let's them interact with a system which runs the Global Brain algorithm.

To run the model, you have to provide an OpenAI API key by putting it into your .env file (see .env.example). If you use direnv, you can run direnv allow in the repository's directory and the contents of the file .env.example will be copied into a file called .env. In this file, change the OPENAI_API_KEY variable to your key. After running direnv allow, you should also have a dev shell which has all the necessary dependencies to run the model and explore the results. The just command runner is used to simplify workflows.

To run the model, execute:

just agents

To explore the model, run:

just agents-app

To generate personas, run:

just personas

Prototype and Simulations App

The prototype-simulations-app folder contains a shiny app that uses d3 to visualize the results of the Global Brain algorithm.

To run it, use:

just shiny

global-brain-experiments's People

Contributors

johannesnakayama avatar

Watchers

Jonathan R. Warden avatar Felix Dietze avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.