- A practice project I put together to make a RAG app to query the MongoDB database I made to keep track of gigs for my old band with NLP to query via the command line.
- Python 3.9+
- MongoDB
- OpenAI API Key
-
Clone the repository:
git clone https://github.com/yourusername/wotb-chatbot.git cd wotb-chatbot
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up your
.env
file with your MongoDB URI and OpenAI API key.
-
Run the chatbot:
bash python3 console_app/ __main__.py
-
To interact with the chatbot through the terminal, choose option 9. ChatGPT can answer question about the band Wake of the Blade's shows based on the data in thw Wake of the Blade database with the helper functions in the mongo directory.
- Customize chatbot behavior by modifying the prompts in
openai_custom/utils.py
.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new feature branch (
git checkout -b feature-branch
). - Make your changes and test them thoroughly.
- Submit a pull request for review.
This project is licensed under the MIT License. See the LICENSE file for details.