This is a Streamlit application that allows users to query multiple PDF files and get responses from a conversational AI model. The application utilizes Google Generative AI for embeddings and conversational responses.
- Upload multiple PDF files
- Ask questions about the content of the PDFs
- Get detailed answers from the AI model
- Request a call back by providing your contact information
Follow these steps to set up and run the application locally:
- Python 3.7+
- Virtual environment tool (e.g.,
venv)
First, clone the repository to your local machine:
git clone https://github.com/notsubash/PDFChatbot.gitCreate and activate a virtual environment:
conda create -p venv python == 3.11
conda activate /PDFChatbot/venv Install the required Python packages:
pip install -r requirements.txt
conda install -c conda-forge faiss-cpu Create a .env file in the root directory of the project and add your Google API key:
GOOGLE_API_KEY=your_google_api_key To run the Streamlit application, use the following command:
streamlit run app.py- Open the Streamlit application in your web browser. It should be running on http://localhost:8501.
- Upload your PDF files using the file uploader in the sidebar.
- Ask a question about the content of the uploaded PDFs in the input box.
- If you request a call back, fill out the form with your contact information.
- app.py: Main application script
- requirements.txt: List of dependencies
- .env: Environment variables (not included in the repository)
- venv/: Virtual environment directory (not included in the repository)
This project is licensed under the MIT License.
Feel free to fork this project and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.