HelpAI is an open-source Python project that utilizes OpenAI GPT3/GPT4 models alongside Longchin to create a customer service AI agent to answer customer questions. The project works by vectorizing and storing all the data provided on the help center website of the company in a Pinecone database. It then vectorizes the query entered by the user and performs a similarity check to retrieve essential data and pass it in the command sent to GPT4.
To set up HelpAI, follow these steps:
- Create a Python environment by running
python -m venv <env-name>
- Install all dependencies by running
pip install -r requirements.txt
- Create an account on the OpenAI and get an API Key
- Create an account on Pinecone and create an index called
help-ai
with a dimension of 1536 - Create the
utils/secret_keys.py
file, create and fill theOPENAI_API_KEY
,PINECONE_API_KEY
, andPINECONE_ENVIRONMENT
constants with your OpenAI API Key, Pinecone API Key, and Pinecone environment
To run HelpAI:
- Vectorize and store the data in your Pinecone index by running
python create_index.py
- Run and query the program by running
python main.py
We welcome contributions from anyone interested in improving HelpAI! To contribute:
- Fork the repository and clone it to your local machine
- Create a new branch for your feature or bug fix
- Make your changes and commit them to your branch
- Push your changes to your forked repository
- Create a pull request to merge your changes into the main branch
Thank you for your interest in contributing to HelpAI!
- DIEI Salomon
- ADJETEY Michel