Skip to content

OriLevin55/ai-document-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

AI Document Summarizer

A professional Streamlit web application that uses Claude AI (Anthropic) to generate clean, structured summaries of any PDF document. Upload a PDF, click Summarize, and receive an organized breakdown in seconds.

Features

  • One-click PDF summarization powered by Claude AI
  • Structured output — overview, key points, action items, and a bottom-line takeaway
  • Download summaries as Markdown files for easy sharing
  • Error handling — friendly messages for empty PDFs, API issues, and invalid files
  • Clean, professional UI built with Streamlit

Screenshot

Screenshot placeholder — add a screenshot of the app here.

App Screenshot

How It Works

  1. User uploads a PDF file through the web interface.
  2. The app extracts text from the PDF using PyPDF2.
  3. The extracted text is sent to the Claude API with a structured prompt.
  4. Claude returns a formatted summary with an overview, key points, action items, and a bottom line.
  5. The summary is displayed in the app and can be downloaded as a .md file.

Installation

1. Clone the repository

git clone https://github.com/OriLevin55/ai-document-summarizer.git
cd ai-document-summarizer

2. Create a virtual environment (recommended)

python -m venv venv
source venv/bin/activate        # macOS / Linux
venv\Scripts\activate           # Windows

3. Install dependencies

pip install -r requirements.txt

4. Set up your API key

Copy the example environment file and add your key:

cp .env.example .env

Open .env and replace your_api_key_here with your actual Anthropic API key.

5. Run the app

streamlit run app.py

The app will open in your browser at http://localhost:8501.

Getting an Anthropic API Key

  1. Go to console.anthropic.com.
  2. Sign up or log in to your account.
  3. Navigate to Settings > API Keys.
  4. Click Create Key, give it a name, and copy the key.
  5. Paste the key into your .env file.

Note: Anthropic offers free credits for new accounts. Check their pricing page for current details.

Real-World Use Cases

This tool is built for professionals who need to quickly digest long documents:

  • Legal Documents — Summarize contracts, NDAs, and legal briefs to extract key obligations and deadlines.
  • Business Reports — Get the highlights from quarterly reports, financial statements, and strategy decks.
  • Research Papers — Break down academic papers into digestible overviews with key findings.
  • HR & Compliance — Quickly review employee handbooks, policy updates, and compliance documents.
  • Client Deliverables — Offer document summarization as a value-add service for consulting or freelance clients.

Project Structure

ai-document-summarizer/
├── app.py              # Main Streamlit application
├── requirements.txt    # Python dependencies
├── .env.example        # Environment variable template
└── README.md           # Project documentation

Tech Stack

  • Python 3.10+
  • Streamlit — Web UI framework
  • Anthropic Python SDK — Claude API client
  • PyPDF2 — PDF text extraction
  • python-dotenv — Environment variable management

License

MIT


Built by Ori Levin

About

Streamlit web app that summarizes any PDF using Claude AI — portfolio project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages