Skip to content

Retrieval Augmented Generation Chatbot for Warhammer 40k Rules

License

Notifications You must be signed in to change notification settings

teddyrendahl/ragwar

Repository files navigation

ragwar

Retrieval Augmented Generation Chatbot for Warhammer40k Rules

rag_demo.mov

Installation

$ pip install -r requirements.txt

How to Use

This project requires a valid OPENAI_API_KEY to do the embedding and response generation. Simply create a .env file in this directory with your key as shown in the .env.example.

Creating the Database

This project uses Chroma to create a local vector database of the embeddings. It's assumed this is done before running app.py

$ python create_db.py

Afterwards you should see the generated files in a chroma folder

Running the Application

To run the application use streamlit:

$ streamlit run app.py

About

Retrieval Augmented Generation Chatbot for Warhammer 40k Rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages