This project showcases two different Python scripts for developing chatbots using Langchain and Streamlit. The first script implements a simple CSV chatbot using Langchain and Streamlit, while the second script utilizes the Llama pretrained model for chatting, without integrating with Streamlit.
https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/tree/main/llama-2-7b-chat.ggmlv3.q4_0.bin
You can download it locally first add as path.
Before running the scripts, ensure you have the following installed:
- Python 3.9
- Pip
-
Clone the repository to your local machine:
git clone https://github.com/GVanave/langchain-chatbot.git
-
Navigate to the project directory:
cd langchain-chatbot
-
Install the required Python packages:
pip install -r requirements.txt
This project includes a Streamlit web application with two pages: one for the chatbot and another for data statistics.
To run the Streamlit web application, execute the following command:
streamlit run csv_chatbot.py
csv_chatbot.py
: Python script implementing a simple CSV chatbot using Langchain and Streamlit.llama_chatbot.ipynb
: Python script demonstrating the usage of the Llama pretrained model for chatting.requirements.txt
: List of Python packages required for the project.
In future iterations of this project, the following enhancements are planned:
- PDF Chatbot: Implementing a chatbot capable of processing PDF documents for more versatile interactions.
- Fine-tuning LLMs: Fine-tuning Large Language Models (LLMs) like GPT-3 or BERT for specific tasks to improve conversational abilities and accuracy.
💡 Stay tuned for updates as we continue to improve and expand the capabilities of LLMs! 🚀
Contributions are welcome! If you'd like to contribute to this project, please fork the repository, make your changes, and submit a pull request.