Eversmile12 / Mihir

Automated docs bot with integrated crawler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Chatbot with GPT3.5

πŸ‘‹ 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:

Getting Started

  1. Clone the repository:
git clone https://github.com/Eversmile12/Mihir
  1. Create a new virtual environment and activate it:
python3 -m venv env
source env/bin/activate
  1. Install the requirements:
pip install -r requirements.txt
  1. In the scraper.py file, change the url and page number variable in the following function (precisely when calling multiProcessPages and findFirstPage):
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")
  1. Set up the environment variables for Pinecone and OpenAI. You can find guides on how to get your API keys here: Pinecone and OpenAI.

  2. Once the two API keys are set, run scraper.py:

python3 scraper.py
  1. Wait for the process to complete.

  2. Run the chat.py file:

python3 chat.py
  1. 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! πŸ€–πŸ’¬

Badges

Placeholder

Hope you enjoy using this repository as much as we enjoyed creating it. Happy chatting! πŸ˜„

About

Automated docs bot with integrated crawler

License:MIT License


Languages

Language:Python 100.0%