Skip to content

gmook9/Detective9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detective 9 Cover Art

Detective 9 Text Based Game

Overview

Detective Game is an interactive text-based game where you play the role of a detective. This sample is meant to show off Llama 3 from Meta running locally. The AI bot that is running on Llama 3 via Ollama assumes a random role related to a crime scenario. Your goal is to determine whether the AI bot is innocent or guilty through a series of questions.

Info

  • Llama 3: Open source Large Language Model from Meta for generating AI responses.
  • Ollama: Platform for running Llama 3 locally.
  • Rich: Library for creating beautiful terminal outputs.

Requirements for Running the Source Code:

  • Llama 3 model files: Required to generate AI responses (download from Ollama).

  • Python Libraries:

    • python-dotenv: For environment variable management.
    • rich: For terminal UI.
    • langchain_community: For Llama 3 integration.

    These can be installed by running:

    pip install -r requirements.txt
    

Ollama Download

Download: https://ollama.com/download
Tutorial: https://www.youtube.com/watch?v=Asleok-Snfs

Startup

Method 1: Running the Source Code

  1. Initialize Llama 3:

    • Run the command ollama run llama3 to initialize and run the Llama 3 model locally using the Ollama platform. This is required for generating AI responses.
  2. Install Dependencies:

    • Install the required Python packages by running:
      pip install -r requirements.txt
  3. Start the Game:

    • Run the following command to start the game:
      python startGame.py

Method 2: Running the Executable

  1. Initialize Llama 3:

    • Just like with the source code method, you need to run the Llama 3 model:
      ollama run llama3
  2. Run the Game:

    • Navigate to the dist folder where the executable is located.
    • Double-click on startGame.exe to launch the game.

    Alternatively, you can run the executable via the command line:

    ./dist/startGame.exe

About

Detective 9 Llama3 text based game

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages