Skip to content

This AI-powered tool lets you extract text, ask intelligent questions, summarize content, and highlight relevant sections in PDFs. With OpenAI GPT-3.5 at its core, it provides seamless and interactive ways to engage with single or multiple PDF files.

Notifications You must be signed in to change notification settings

Aditya7248/PDF_AI_Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF AI Assistant 📚🤖

🚀 Interact with your PDFs like never before! Extract text, ask intelligent questions, highlight key sections, and generate summaries—all powered by OpenAI GPT-3.5. Seamlessly handle single or multiple PDFs and get instant insights with a user-friendly interface. 📃🌐


Features

  • Text Extraction:

    • Process single or multiple PDFs effortlessly.
    • Extract text from all pages using pdfplumber.
  • AI-Powered Interactions:

    • Ask questions about your PDF content and get contextual responses.
    • Summarize PDFs into concise and meaningful insights.
  • Highlight Key Sections:

    • Highlight relevant keywords/phrases in the original PDF.
    • Download the highlighted version for quick reference.
  • Error Handling:

    • Handles invalid or non-text PDFs gracefully.
    • Provides clear prompts for issues like invalid file types.

Installation

  1. Clone the Repository:

    git clone https://github.com/Aditya7248/PDF_AI_Assistant.git
    cd PDF_AI_Assistant
  2. Set Up a Virtual Environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Set Up OpenAI API Key:

    • For security reasons, users must provide their own OpenAI API key.
    • Create a .env file in the root directory.
    • Add your OpenAI API key:
      OPENAI_API_KEY=your_openai_api_key
      

Usage

  1. Run the Application:

    streamlit run main.py
  2. Interact with Your PDFs:

    • Upload a PDF file (or multiple files).
    • Ask questions like: "What is this document about?" or "Summarize this PDF."
    • Highlight keywords/phrases and download the annotated PDF.

🎉 Pro Tip: Use the "Summarize" feature to get a quick overview of lengthy documents!


Example Interaction

Screenshots:

App Screenshot

Demo Video:

demo.video2.1.mp4

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contributions

Contributions are welcome! Feel free to open issues or submit pull requests.


Acknowledgements


For questions or support, contact: Aditya Tiwari

About

This AI-powered tool lets you extract text, ask intelligent questions, summarize content, and highlight relevant sections in PDFs. With OpenAI GPT-3.5 at its core, it provides seamless and interactive ways to engage with single or multiple PDF files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages