Git Product home page Git Product logo

ai-murder-mystery-hackathon's Introduction

AI Alibis: Multi-Agent LLM Murder Mystery

Play online

Setup

  1. Git clone the repo
git clone https://github.com/ironman5366/ai-murder-mystery-hackathon.git
cd ai-murder-mystery-hackathon
  1. Add your Anthropic API to api/.env file (optionally can export conversations to postgres with DB_CONN_URL="postgresql://link_to_db_conn")
nano api/.env
export ANTHROPIC_API_KEY="YOUR_API_KEY_HERE"
(<ctrl+x , y, enter> to save changes and exit nano)
  1. Install Node dependencies
web/npm i
  1. Start up the api
bash api_start.sh
  1. In separate terminal, start up the web interface
bash web_start.sh
  1. Play the game!

Setup (with Docker)

  1. Git clone the repo
git clone https://github.com/ironman5366/ai-murder-mystery-hackathon.git
cd ai-murder-mystery-hackathon
  1. Set environment variables:
export ANTHROPIC_API_KEY="YOUR_API_KEY_HERE"
  1. Open a terminal in the folder containing this README, then run:
docker compose up

This should start three containers (the database, Python API, and React frontend) and create a persistent volume for the database.

  1. Play the game at http://localhost:3000/

If you change any files (for example, changing the Anthropic model in /api/settings.py), then you will likely need to rebuild the images:

docker compose up --build
  1. To shut everything down, hit CTRL-C or click the stop button in the Docker GUI.

To clean up, use the Docker GUI to delete all containers then go to the "Volumes" tab to delete the associated database volume.

Additional info

You can read the full murder story by checking out web/src/characters.json, which contains the full context provided to each character.

To see how our prompting system works, including our critique and revision approach, check out api/ai.py.

Twitter thread on the game: https://x.com/humanscotti/status/1810777932568399933

Contact

AI Alibis was created by Paul Scotti and Will Beddow.

ai-murder-mystery-hackathon's People

Contributors

paulscotti avatar ironman5366 avatar alberto98fx avatar bryik avatar kalabint avatar

Stargazers

 avatar Dominik Antal avatar  avatar EasonHuang avatar Adrian L Thomas avatar Zhaoyang Liu avatar Thiago Versiani Amorim avatar tianxin avatar  avatar Yan avatar Hu Xiaolin avatar 爱可可-爱生活 avatar Ashwin Kumar avatar ShiFei avatar Joseph Mae avatar Jaehwan Lee avatar  avatar Березин Дмитрий avatar  avatar weihigh avatar  avatar Juniechu avatar wey avatar Anwesha Chowdhury avatar  avatar  avatar  avatar HaoNan Chen avatar J. Lee avatar sojoner avatar  avatar Manuel Rüger avatar Maya Kaczorowski avatar JIMMY ZHAO avatar  avatar MO_DEV avatar  avatar  avatar Aerbeita avatar DDD-HHY avatar DerekMonster avatar Lingyue Pan avatar  avatar  avatar  avatar  avatar Logan Frederick avatar heisetukela avatar Manuel avatar Yann Pellegrini avatar liujingkang avatar Jonas Lund avatar Kidding avatar David Chai avatar  avatar tubb avatar  avatar Tom Sartain avatar  avatar rrtt2323 avatar  avatar Melon avatar  avatar Yuan-Man avatar  avatar  avatar  avatar Jack Urso avatar Jianqi Pan avatar Zhangcheng Qiang avatar  avatar  avatar  avatar  avatar  avatar  avatar Hengstar Gong avatar  avatar Luke Hollis avatar  avatar yjz0065 avatar  avatar ariso software avatar  avatar Tan Shaohui avatar Jody Frankowski avatar  avatar A.s. avatar  avatar Armstrong avatar Ying LI avatar GT avatar threadshare avatar 无重力广场 avatar WangHeng avatar Aria F avatar Huy Linh Nguyen avatar Richard Silver avatar Andrew avatar Christian T R avatar

Watchers

 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.