This AI bot uses llm-client to take a question from a user and lookup a database to be able to answer the question. It uses the function calling capabilities of OpenAI's GPT-3.5 to be able to call functions and return data from the sqlite3
database.
- Clone the repository
git clone https://github.com/amitdeshmukh/ecommerce-ai.git
cd ecommerce-ai
- Install the dependencies
npm install
- Install
sqlite3
if you don't have it already
brew install sqlite3
- Create the database from the
create_database.sql
file
sqlite3 ecommerce.db < create_database.sql
- Create a
.env
file in the root of the project and add the following variables
OPENAI_APIKEY=<your-openai-api-key>
- Run the bot
npm start # or node index.js