🤖 This is a chatbot that uses a combination of Langchain, LLM (GPT-3), and Chroma to generate responses based on a user's input and a provided document or context. Features
- Generates responses based on a user's input and a provided document or context
- Uses Langchain to preprocess the user's input and document/context
- Uses LLM (GPT-3) to generate responses based on the preprocessed input and document/context
- Uses Chroma to highlight important words and phrases in the document/context
- Built with Python and Streamlit, making it easy to run and demo
ChatScreen 1 | ChatScreen 2 |
---|---|
ChatScreen 3 | |
Read the article to learn more.
Python 3.7 or later
Streamlit 0.80.0 or later
OpenAI API key with access to LLM (GPT-3)
Clone the repository:
git clone https://github.com/your-username/your-repository.git
Install the required Python packages:
pip install -r requirements.txt
Set up your OpenAI API key by creating a .env file in the root directory of the project with the following contents:
OPENAI_API_KEY=<your-api-key-here>
Run the Streamlit app:
streamlit run app.py
If you would like to test with any personalized document please replace the docs directory.
- Enter a message or question in the imput prompt panel. This is what you want the chatbot to respond to.
- Click the "Send" button or press Enter to generate a response from the chatbot.
- 🎉 The response will appear in the right-hand panel
🙌 Contributions are welcome! If you have any suggestions for improving this chatbot, please submit a pull request. License
Thanks for reading...🙏🙏🙏
📝 This project is licensed under the MIT License. See the LICENSE file for details.