This project is a Streamlit-based application that allows users to upload PDF files and interact with their content using a conversational chatbot. The chatbot leverages various language models to answer questions and summarize the content of the PDFs.
- Upload multiple PDF files
- Choose from different language models
- Ask questions about the content of the PDFs
- Get concise answers and summaries
- View chat history
-
Clone the repository:
git clone <repository-url> cd Chatwithpdf
-
Create a virtual environment and activate it:
python -m venv myenv source myenv/bin/activate # On Windows use `myenv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables: Create a
.envfile in the root directory and add the following variables:GROQ_API_KEY=<your-groq-api-key> LANGCHAIN_API_KEY=<your-langchain-api-key> LANGCHAIN_PROJECT=<your-langchain-project>
-
Run the Streamlit application:
streamlit run testCodeV3.py
-
Open your web browser and go to
http://localhost:8501. -
Upload PDF files, choose a language model, and start interacting with the content.
This project is licensed under the MIT License.