Skip to content

A Streamlit-based LLM app that uses LangChain and Groq to summarize YouTube videos and web pages with advanced Map-Reduce and Stuff chains.

Notifications You must be signed in to change notification settings

mritunjayk-ops/smart-summarizer-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦙 LangChain-Groq Summarizer

A simple yet powerful Streamlit web app that summarizes YouTube videos and web pages using LangChain and Groq LLMs. Built for speed, simplicity, and flexibility.


🚀 Features

  • 📺 Summarize YouTube video transcripts automatically.
  • 🌐 Summarize public web pages (e.g., Wikipedia, blogs, articles).
  • 🧠 Choose between:
    • Basic Summarization (Stuff) – quick, single-pass summary.
    • Advanced Summarization (Map-Reduce) – better for longer content.
  • 🤖 Select Groq LLMs like gemma2-9b-it, llama-3.1-8b-instant, etc.
  • 🔥 Control creativity with a temperature slider.
  • 📊 Shows summary length and document statistics.
  • 🎈 Intuitive and interactive UI with Streamlit.

📸 Demo

App Screenshot

The app takes a URL and produces a clean, concise summary using LLMs.


🛠️ Tech Stack

  • LangChain – for prompt templating, chaining, and document loading.
  • Groq API – LLM inference via high-speed transformer models.
  • Streamlit – UI framework for rapid prototyping.
  • FAISS (included but not yet active) – scalable vector search (for future extensions).
  • Python 3.9+

🔑 Prerequisites


📦 Installation

  1. Clone the repository:

    git clone https://github.com/your-username/groqchain-summarizer.git
    cd groqchain-summarizer
  2. Create a virtual environment (recommended):

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

    pip install -r requirements.txt
  4. Run the app:

    streamlit run app.py

🔵 Usage

  1. Enter your Groq API key in the sidebar.
  2. Choose summarization method (Basic or Advanced).
  3. Select a model and temperature.
  4. Paste a YouTube video URL or web page URL.
  5. Click Summarize.
  6. 🎉 Get your concise summary!

📁 Project Structure

├── app.py                 # Main Streamlit app
├── requirements.txt       # Python dependencies
├── README.md              # Project documentation
└── assets/
    └── screenshot.png     # App screenshot

📌 To-Do (Optional Extensions)

  • Add FAISS-based document memory.
  • Upload PDF/docx content.
  • Save and export summaries.
  • Integrate other LLM providers.

About

A Streamlit-based LLM app that uses LangChain and Groq to summarize YouTube videos and web pages with advanced Map-Reduce and Stuff chains.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages