How dheeraj932/llm-20-questions-game works
This repository is a notebook-based 20 Questions gamebot. A user supplies yes/no answers while the bot alternates between asking questions and making word guesses, ending when it guesses correctly or reaches 20 questions. The README documents that the Meta-Llama-3.1-8B-Instruct model supports both question and guess generation through Hugging Face Transformers. No source excerpts were provided, so the graph reflects documented behavior only; the notebook’s internal call structure is not verified.
Main entry points: LLM 20 Questions Game.ipynb Game interaction loop
Components 7
Game runtime
- Game interaction loop
LLM 20 Questions Game.ipynb - Question generation
LLM 20 Questions Game.ipynb - Word guessing
LLM 20 Questions Game.ipynb - Game termination
LLM 20 Questions Game.ipynb
Language model
- Meta-Llama 3.1 8B
- Hugging Face Transformers
Other components
- Player
Connections 7
- Player → Game interaction loop: answers yes/no
README.md - Game interaction loop → Question generation: asks questions
README.md - Game interaction loop → Word guessing: makes guesses
README.md - Question generation → Meta-Llama 3.1 8B: generates questions
README.md - Word guessing → Meta-Llama 3.1 8B: generates guesses
README.md - Game interaction loop → Game termination: ends on success or limit
README.md - Meta-Llama 3.1 8B → Hugging Face Transformers: uses library
README.md