Welcome to Second-Brain-Bot! This repository contains a stateful chatbot powered by OpenAI's large language model (LLM). The chatbot is capable of handling customer queries or working as your personal assistant/second brain. With the use of natural language processing (NLP) techniques and prompt engineering, this chatbot aims to achieve 90% accuracy in response generation. When integrated with existing customer service platforms, it's able to reduce customer wait time by up to 50%.
Second-Brain-Bot can be used for a variety of applications, including customer support, personal assistance, task management, and more. The chatbot keeps track of the conversation history, enabling context-aware responses.
- Stateful conversation handling
- Integration with customer service platforms
- High accuracy in response generation through NLP and prompt engineering
- Retrieval of relevant information from past conversations
- Scalable and customizable
Second-Brain-Bot/
│
├── Chatbot.ipynb # Main chatbot notebook
├── Upsert.ipynb # Notebook for updating/inserting chat history
├── vector_retrieval.py # Script for retrieving relevant information from vectors
├── chat_history.py # Script for handling chat history
│
└── README.md
- Python 3.6 or later
- Jupyter Notebook
- OpenAI Python Library
Install the required libraries using pip
:
pip install jupyter openai
-
Clone this repository:
git clone https://github.com/pareek-yash/Second-Brain-Bot.git cd Second-Brain-Bot
-
Launch Jupyter Notebook:
jupyter notebook
-
Open
Chatbot.ipynb
and run the cells to start the chatbot. -
Use
Upsert.ipynb
to handle chat history - updating and inserting conversations as required. -
vector_retrieval.py
andchat_history.py
are Python scripts that are used in the notebooks for handling information retrieval and chat history respectively.
- You can customize the chatbot prompts and responses in the
Chatbot.ipynb
notebook. - For advanced customizations like changing the vector retrieval mechanism, you can modify the
vector_retrieval.py
script.
To integrate Second-Brain-Bot with an existing customer service platform, you need to use the respective OpenAI’s API and weaviate account. Modify the Chatbot.ipynb
to send and receive messages through the platform’s API instead of the notebook’s interface.
Contributions are welcome! Please read the contributing guidelines before submitting pull requests or issues.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or concerns, please open an issue or contact the repository owner.
Thank you for checking out Second-Brain-Bot! 🤖🧠