This repository contains the code for a chatbot using Langchain
and backed by Llama-7B-chat
by Meta
using Huggingface
and Streamlit
for frontend UI.
- Clone the repository
git clone https://github.com/suryanshgupta9933/Law-GPT.git
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install the requirements
pip install -r requirements.txt
- Ingesting Knowledge into the Chatbot.
- Add your pdfs or docx files to the
dataset
folder. - Run the following command to ingest the knowledge into the chatbot.
python ingest.py
- This will create a
/vectorstore
folder which will contain the vectorized knowledge.
- Add your pdfs or docx files to the
- Running the Chatbot.
- Run the following command to start the chatbot.
python app.py