PDF-Chatbot-Pro

PDF Chatbot Pro

PDF Chatbot Pro is an application that allows you to chat with multiple PDF documents using Langchain and Google Gemini Pro. It uses large language models to process natural language queries and extract information from the provided PDF documents.

web app

Table of Contents

Setup

Follow these steps to set up PDF Chatbot Pro:

  1. Clone the Repository:

     git clone <repository_url>
     cd pdf-chatbot-pro
    
  2. Create a .env file:

    In the root directory of the project, create a .env file and add the following variables:

     GOOGLE_API_KEY=your_google_api_key
    
  3. Install Dependencies:

    Install the required Python packages from the requirements.txt file:

     pip install -r requirements.txt
    
  4. Place PDF Documents:

    Place your PDF documents in the specified directory (e.g., pdf_documents/) to allow the application to access them.

  5. Modify the app.py file:

    Adjust any configuration settings in the app.py file to match your setup.

Usage

  1. Run the application:

    Start the application using Streamlit:

     streamlit run app.py
    
  2. Interact with the application:

    Use the provided user interface to input natural language queries and chat with the PDF documents.

Dependencies

Troubleshooting

Contributions

Contributions are welcome! Please submit a pull request with your changes.

License

This project is licensed under the MIT License.