Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.23 KB

Multiple-PDF-QA-Chatbot

The Multiple PDF Q&A Chatbot allows users to upload multiple PDF files for content analysis. Using Langchain, it extracts text and processes queries with advanced language models. Each response includes file source information and page numbers, facilitating efficient information retrieval and analysis of large document sets.

Features

  • Upload multiple PDF files for content extraction.
  • Ask questions related to the uploaded documents.
  • Contextual responses utilizing OpenAI's language model.
  • Detailed answer sourcing, indicating which document and page the information is derived from.

Requirements

  • Python 3.7 or higher
  • Gradio
  • OpenAI SDK
  • LangChain Community
  • LangChain Chroma
  • Dotenv

Installation

  1. Clone the repository:

    git clone https://github.com/isilbekci/Multiple-PDF-QA-Chatbot.git
    cd Multiple-PDF-QA-Chatbot
    
  2. Install the required packages:

    pip install -r requirements.txt
    
  3. Set up your environment variables. Create a .env file in the root directory and add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    
    

Usage

To run the chatbot interface, execute the following command:

python multiple_pdf_qa_chatbot.py