/openai-chatbot

OpenAI ChatBot Demo

Primary LanguageTypeScript

Chatbot Application

Design Documentation

https://github.com/IAmBlackHacker/openai-chatbot/blob/main/DesignDocument.md

Setup Backend Server

Dependencies

Python 3.10.9

Install Packages

Install Virtual Environment

pytohn -m pip install virtualenv

Create Virtual Environment

python -m virtualenv venv

Activate Virtual Environment

source ./venv/bin/activate

Go Inside chatbot-backend folder in terminal

cd chatbot-backend

Install Dependencies

python -m pip install -r requirements.txt

Set API Key

export OPENAI_API_KEY=<YOUR_OPENAPI_KEY>

Start the backend server

python app.py

Check that backend server should be running at http://localhost:5001

Setup Frontend Server

Install Dependencies

node v20.17.0
yarn 4.5.0

Start Server

Go inside chatbot-ui

cd chatbot-ui

Start the server

yarn start

Check that frontend server should be running at http://localhost:3000

Working Snapshot

img.png