Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 787 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 787 Bytes

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