Giter Site home page Giter Site logo

questify's Introduction

Questify!

Questify

This is a intended to be a reasonably simple application that will be used to demonstrate various AI and LLM based capabilities in the context of an Elixir/Phoenix app.

The app will be a game will be modeled roughly in the style of a Choose Your Own Adventure book, where the player is given a text prompt and asked to navigate a series of choices that will result in a non-linear story / game.

Codebase and Context

This game and codebase are part of an article and speaking series, with the initial intention of being small and simple enough to be easily understood over the course of a presentation, but full featured enough to be a realistic use case.

This code base is organized in increasing levels of integration with LLM and AI capabilities, as roughly defined in this article.

Redefined here we'll have:

  • Level 0 - Just a working app with no AI / LLM integrations
  • Level 1 - Integration with simple APIs
  • Level 2 - Retrieval Augmented Generation (RAG) architecture
  • Level 3 - Agent-based behaviors

The intention of this code base is to show these various integration levels so it will start out with each level as a separate branch for developers to dig through as part of this article and presentation series.

More information about the associated presentation can be found here.

Local Dev

Because of the use of Postgres as vector database, I highly recommend using docker for your local db with the provided scripts.

I would also suggest not keeping anything too permanent in the database (don't world build by hand), because you'll likely reset the database a few times as you navigate to different branches.

Running a local dev instance:

  • Run mix setup to install and setup dependencies
  • Run the dev db with dev/sh/runDB.sh
  • Run mix ecto.setup to create and seed database.
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4500 from your browser.

Learn more about Elixir / Phoenix

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.