Skip to content

resolutio-ai/ai-chatbot-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-chatbot-pipeline

Live URL: https://resolutio-chatbot-pipeline.onrender.com

Backend for AI Chatbot with a serving wrapper in Flask

Getting Started

In order to run the pipeline, please follow the below steps.

  1. Download and Install Python 3.11.x (this version uses 3.11.2)
  2. Clone this repository
  3. Create a python virtual environment like below
python3 -m venv /path/to/env

example: `python3 -m venv ai_env`
  1. Activate the virtual environment like below.
source activate /path/to/env/bin/activate

example: `source activate ai_env/bin/activate`
  1. Install the required Python packages as followed
cd ai-chatbot-pipeline/
pip install -r requirements.txt
  1. Next, place the .env file with API keys (sent separately for security reasons) outside the repository directory.
  2. Now go to /ai-chatbot-pipeline directory and from terminal, run app.py like below.
python app.py
  1. Once the app is launched, from another terminal (or terminal tab), run the bash script to make cURL requests.
./run.sh
  1. In the first terminal, you should see the main menu like below. Use Arrow to select any option and press Enter.
 What do you need help with today?: General IP Queries
 > General IP Queries
   Azuki License
   Viral Public License
   BYAC License
   MAYC License

  1. Once an option is selected, you will be asked to give a prompt.
  2. Write your question as a prompt and hit enter. First time it may take a while to get back a response.
  3. The response will be printed in the terminal for your reference. Additionally, the data (answer + chat_history) will be written in chats.json file in real-time.
  4. To end the application, press ctrl + c in both terminals.

About

Backend for AI Chatbot with a serving wrapper in Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published