Skip to content

maglesT/LLM-Based-PDF-Summarizer-Notes-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📄 LLM-Based PDF Summarizer & Notes Generator

This project automates the process of extracting, cleaning, and summarizing content from PDF files using Large Language Models (LLMs) via LangChain and Google Generative AI.
It then formats the output into a well-structured Word document (DOCX) with optional images — perfect for creating study notes, research summaries, or concise reports.


🚀 Features

  • 📘 PDF Text Extraction – Uses pdfminer.six to extract readable text from PDF files.
  • 🧹 Text Cleaning – Removes unwanted symbols, whitespace, and page artifacts.
  • 🧩 Automatic Sectioning – Organizes text into logical sections based on headings or patterns.
  • 🧠 AI Summarization – Summarizes each section using LangChain + Google Generative AI.
  • 📝 Formatted Output – Generates a clean .docx document with structured summaries.
  • 💾 Easy Export – Automatically saves and offers a download link for the final document.

🧰 Requirements

Install the required dependencies before running the notebook:

pip install pdfminer.six langchain langchain_google_genai python-docx

You can also install them directly from within the notebook:

!pip install pdfminer.six langchain_google_genai python-docx langchain

Note : API Key of an AI Model is required (recommended Gemini)


⚙️ Usage

  1. Clone the repository: git clone https://github.com/maglesT/projects.git

  2. Add the API keys (Gemini)

  3. Specify the PDF path

  4. Run the notebook cells in order.

  5. The notebook will:

    • Extract and clean text from the PDF.
    • Split it into sections.
    • Generate AI-based summaries for each section.
    • Export a formatted .docx file.
  6. Summarized Note & Detailed Note will be generated in the root directory


🧠 Tech Stack

  • Python 3
  • LangChain – for building summarization chains
  • Google Generative AI – for large language model summarization
  • pdfminer.six – for PDF text extraction
  • python-docx – for document creation and formatting

🧾 License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors