🚀 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. 📃🌐
-
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.
-
Clone the Repository:
git clone https://github.com/Aditya7248/PDF_AI_Assistant.git cd PDF_AI_Assistant
-
Set Up a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
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
-
Run the Application:
streamlit run main.py
-
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!
demo.video2.1.mp4
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests.
For questions or support, contact: Aditya Tiwari
- LinkedIn: LinkedIn
- Email: tiwariaditya2707@gmail.com