π Hey there! Welcome to this awesome repository, which contains code for spinning up a personal chatbot using GPT3.5 trained on any documentation. And guess what? 90% of the code has been developed using ChatGPT, a large language model trained on the GPT-3.5 architecture! π»
So, are you ready to create your own personal chatbot and start chatting with it? Here are the steps you need to follow:
- Clone the repository:
git clone https://github.com/Eversmile12/Mihir
- Create a new virtual environment and activate it:
python3 -m venv env
source env/bin/activate
- Install the requirements:
pip install -r requirements.txt
- In the
scraper.py
file, change theurl
andpage number
variable in the following function (precisely when callingmultiProcessPages
andfindFirstPage
):
if __name__ == "__main__":
links = findFirstPage("https://your_documentation_website.com")
visited = multiProcessPages(links, 15, "https://your_documentation_website.com/")
save_text_csv(visited)
page_text_to_embeddings("page_text.csv")
-
Set up the environment variables for Pinecone and OpenAI. You can find guides on how to get your API keys here: Pinecone and OpenAI.
-
Once the two API keys are set, run
scraper.py
:
python3 scraper.py
-
Wait for the process to complete.
-
Run the
chat.py
file:
python3 chat.py
- And voila! You can now start chatting with your personal chatbot and ask it anything you want. It's like having your own personal assistant! π€π¬
Hope you enjoy using this repository as much as we enjoyed creating it. Happy chatting! π