Git Product home page Git Product logo

dspy-adventure's Introduction

DSPy Adventure

This is a text adventure game built using DSPy. The narrative is generated using a language model.

Language Models Supported

  • Mistral using Ollama local
  • GPT-3.5 turbo using OpenAI API

How to Play

  1. Create a virtual environment and install the dependencies
python3 -m venv venv
source venv/bin/activate

python -m pip install poetry
poetry install
  1. Run the game
poetry run python -m adventure

Known Issues

  • Tons of bugs (LOL)
  • The language model responses do not always follow a consistent structure
    • Malformed player backstories
    • Malformed game narratives
    • Malformed story summaries
    • Malformed encounter text
    • Malformed menu options
    • Malformed encounter resolution
  • The narrative context is lost over time
  • The player can't explore the game world
  • The player can be stuck in a single encounter loop forever
  • DSPy can crash sometimes

Roadmap

  • Add narrative generation
  • Add player creation
  • Add random encounters
  • Add language model selection
  • Add player created game context
  • Add game narrative display (Story so far)
  • Add game quit
  • Add player controlled exploration/travel
  • Upgrade encounter system
  • Add player stats
  • Add inventory system
  • Add companion system
  • Add textual UI
  • Add location breadcrumbs
  • Upgrade exploration system
  • Upgrade shop system
  • Add vector database with document store
  • Retrieve game context from database

dspy-adventure's People

Contributors

joelgarrett avatar

Watchers

Joel Garrett 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.