LLM application

AI Dungeon Master for RPG-Text Game

Github Link: github.com/MetinUnlu/LLM_customGPT-textrpg

This Python code is an AI Dungeon Master for a text-based RPG game. It utilizes the Kivy library for the user interface and leverages Mistral or Llama2:7b model for generating interactive storylines and managing the game's narrative flow.

Purpose

This project serves as a practical exploration of Large Language Models (LLMs). It aims to establish a framework for using LLMs to generate dynamic and engaging text, specifically through the creation of a custom AI chatbot.

The core focus lies in:

Features

Additional Notes

Refer to the Ollama documentation for more details on available models and functionalities: Ollama Documentation. Explore the Langchain documentation for advanced LLM usage patterns: Langchain Documentation.

Main Goal of Project

The code establishes a set of guidelines and templates that the Large Language Model (LLM) follows when generating responses for the game. This ensures a more immersive and controlled storytelling experience, essentially creating a custom chat GPT model behavior without extensive fine-tuning.

Breakdown

Benefits:

This approach ensures consistent LLM output, avoids unwanted elements, and encourages player decision-making, leading to a more engaging gameplay experience.

Future Enhancements

This project lays the groundwork for further exploration in LLM-powered text-adventure games. Here are some exciting possibilities:

This project was done to gain experience in LLMs. However, the given concept in this project has not yet been implemented by anyone as of March 2024. Current AI-powered Text-RPG games basically only utilize AI models to create the game flow. However, using dynamic prompt generation by using object information of players, and in more detailed work, inventory, level, experience, stat, skill information combined with a map system and a given set of worlds with missions, a true text-RPG that is actually powered by AI can be achieved.

  • Large Language Models
  • CustomGPT
  • Dynamic Prompt