Skip to content

A python CLI for interfacing with my band's database and using AI to query it

Notifications You must be signed in to change notification settings

lritter79/python-mongo-wotb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wotb-chatbot

Table of Contents

Overview

  • 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.

Installation

Prerequisites

  • Python 3.9+
  • MongoDB
  • OpenAI API Key

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/wotb-chatbot.git
    cd wotb-chatbot
  2. Create a virtual environment:

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up your .env file with your MongoDB URI and OpenAI API key.

Usage

  1. Run the chatbot:

    bash
    python3 console_app/ __main__.py
    
    
  2. 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.

Configuration

  • Customize chatbot behavior by modifying the prompts in openai_custom/utils.py.

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository.
  2. Create a new feature branch (git checkout -b feature-branch).
  3. Make your changes and test them thoroughly.
  4. Submit a pull request for review.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A python CLI for interfacing with my band's database and using AI to query it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages