Skip to content

A bot which analyze the single or multiple pdfs as an input and after processing them and answers all the qustions related with the given pdfs. This app utilizes a language model to generate accurate answers to your queries which uses LangChain bind with OpenAI API for processing the pdfs

License

Notifications You must be signed in to change notification settings

manish-4007/PDF-QnA-Expert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Q&A Expert APP

It is an bot which analyze the single or multiple pdfs as an input and after processing them and answers all the qustions related with the given pdfs. This app utilizes a language model to generate accurate answers to your queries which uses Langchain bind with OpenAI Api for processing the pdf

The application follows these steps to provide responses to your questions:

  1. PDF Loading: The app reads multiple PDF documents and extracts their text content.

  2. Text Chunking: The extracted text is divided into smaller chunks that can be processed effectively.

  3. Language Model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.

  4. Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.

  5. Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.

Dependencies and Installation


To install the MultiPDF Chat App, please follow these steps:

  1. Clone the repository to your local machine.

  2. Install the required dependencies by running the following command:

    pip install -r requirements.txt
    
  3. Obtain an API key from OpenAI and add it to the .env file in the project directory.

OPENAI_API_KEY=your_secrit_api_key

Usage


To use the MultiPDF Chat App, follow these steps:

  1. Ensure that you have installed the required dependencies and added the OpenAI API key to the .env file.

  2. Run the main.py file using the Streamlit CLI. Execute the following command:

    streamlit run app.py
    
  3. The application will launch in your default web browser, displaying the user interface.

  4. Load multiple PDF documents into the app by following the provided instructions.

  5. Ask questions in natural language about the loaded PDFs using the chat interface.

Usage

App Link -

About

A bot which analyze the single or multiple pdfs as an input and after processing them and answers all the qustions related with the given pdfs. This app utilizes a language model to generate accurate answers to your queries which uses LangChain bind with OpenAI API for processing the pdfs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages