We made LLMs play the popular deception game Secret Hitler.
- Passed in relevant information to each player: Their known information (board state, fascists if they are a fascist, etc.)
- Chunked and uploaded strategy docs to a vector database and pull relevant strategy using RAG
- The rules of the stage and their goal
- Gave a history of the discussions between players (discussed before voting and after enacting a policy)
Place your openai key in a .env file in the simulator folder: OPENAI_API_KEY="INSERT YOUR KEY HERE"
Clone the repository, cd
into simulator, and run python HitlerGame.py
.
- Pinecone Vector DB
- OpenAI Embeddings + GPT-4o
Secret Hitler Simulator We Built On: https://github.com/Mycleung/Secret-Hitler
Strategy Docs: https://secrethitler.tartanllama.xyz/