Skip to content

Repository to create a web page to ask a pdf questions

Notifications You must be signed in to change notification settings

bcthakre/GenAIPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskPDF 📄💬

An interactive Language Model-powered chatbot application that enables users to delve deep into their PDFs. Built with the power of Streamlit, LangChain, and OpenAI.

🌟 Overview

AskPDF is a chatbot that consumes a user-uploaded PDF, processes its text, and engages the user in a Q&A session about the content of the PDF. Dive into your documents and uncover insights with ease!

✨ Features

  • 📤 Upload a PDF and extract its text.
  • 💬 Interactive chat interface to ask questions.
  • 🧠 Uses embeddings for swift content lookup.
  • 🚀 Built leveraging Streamlit, LangChain, and OpenAI.

📋 Prerequisites

Ensure these libraries are set up:

  • Streamlit
  • streamlit_extras
  • PyPDF2
  • LangChain (and its modules)
  • OpenAI
  • dotenv
  • pickle (Standard Python Library)
  • os (Standard Python Library)

🔧 Setup & Installation

  1. 📥 Clone the repository:
    git clone https://github.com/bcthakre/GenAIPDF.git
  2. 🚀 Move to the repository directory:
    cd <repository-directory>
  3. 🛠 Install necessary packages:
    pip install -r requirements.txt
  4. 🎉 Launch the Streamlit app:
    streamlit run app.py
    

📘 Usage

  1. 🖥 Open the app in your browser.
  2. 📄 Drag and drop a PDF file.
  3. ❓ Pose your questions regarding the PDF content.

App Flow Diagram

graph TD
    A[Start]
    B[Upload PDF]
    C[Extract Text from PDF]
    D[Process & Embed Text]
    E[User asks Question]
    F[Fetch & Display Answer]
    A --> B
    B --> C
    C --> D
    D --> E
    E --> F

About

Repository to create a web page to ask a pdf questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages