This is a Demo Project on seeing how a power of LLM's could be utilized to add AI to a Sales Bot
- The prompts can be found inside of the prompts.py file
- For mac have xcode installed
- Open Terminal and run the following step by step
xcode-select --install
- Users running macOS High Sierra, Sierra, El Capitan, or earlier, run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Users running Catalina, Mojave, or Big Sur, run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Enter your administrator password when prompted and press Return to continue. Wait for the download to finish
- Remember to restart
- Now run this
python3
if you get no errors you can skip the next step else do it
- https://www.scaler.com/topics/python/how-to-install-python-on-macos/ open this guide and follow to install python
- now create a folder where we will store all these files you can open a terminal inside that folder cd into it
- now inside the terminal make sure you are in the folder run the following commands
pip install virtualenv
virtualenv env
source env/bin/activate
pip install langchain openai unstructured unstructured[local-inference] chroma chromadb python-dotenv tiktoken gradio langdetect deep-translator llama-index
git clone https://github.com/Hamas-ur-Rehman/SalesRep-AI-Sales-Bot
cd SalesRep-AI-Sales-Bot
python3 main.py
- Now please be paitent while it loads and after that you can try talking to it
- IMPORTANT remember to add your openAI API key into the main.py file on line 3
- Create a file called .env and add the following line to it make sure this file is in the same folder as the main.py file
OPENAI_API_KEY= ADD YOU OPEN AI API KEY HERE
- Create an Inteface for the Demo
- Work on Seperating the prompts to a seperate File for easier prompt injection
- work on the installation instructions
- if user engages in Swedish language, so will Alice.
- make sure to qualify user preferences before recommending a product. at least 2 to 5 qustions before any product recommendation.
- make text from Alice always short, not longer than 10 words in the beginning of the conversation
- add introduction line with "Hey, can I help you get something?"
- Add prefilled conversation suggestions that will make it easier for the user to keep the conversation going
- make the chat response time faster