Skip to content
    AI engineering roles via the DiamantAI Collective.See open roles
    NewsGenAI Agents

    News TL;DR

    This project demonstrates the creation of a news summarization agent uses large language models (LLMs) for decision making and summarization as well as a news API calls. The integration of LangGraph to coordinate sequential and cyclical processes, open-ai to choose and condense articles, newsAPI to retrieve relevant article metadata, and BeautifulSoup for web scraping allows for the generation of relevant current event article TL;DRs from a single query.

    Although LLMs demonstrate excellent conversational and educational ability, they lack access to knowledge of current events. This project allow users to ask about a news topic they are interested and receive a TL;DR of relevant articles. The goal is to allow users to conveniently follow their interest and stay current with their connection to world events.

    What you'll learn

    • 1
      LangGraph: Orchestrates the overall workflow, managing the flow of data between different stages of the process.
    • 2
      GPT-4o-mini (via LangChain): Generates search terms, selects relevant articles, parses html, provides article summaries
    • 3
      NewsAPI: Retrieves article metadata from keyword search
    • 4
      BeautifulSoup: Retrieves html from page
    • 5
      Asyncio: Allows separate LLM calls to be made concurrently for speed efficiency.

    About this tutorial

    This hands-on Jupyter notebook is part of GenAI Agents, a free open-source repository by Nir Diamant covering ai agents techniques with runnable code examples and detailed explanations.

    Free and open-sourceRunnable Jupyter notebookActive community support
    Go deeper · Amazon Bestseller in Generative AI

    RAG Made Simple

    Nir Diamant's complete visual guide to Retrieval-Augmented Generation — essential for any GenAI engineer building systems that retrieve and ground responses on real data.

    Get it on Amazon

    ⭐ 4.4 stars · 1,500+ readers · Kindle $9.99 · Paperback $24.99 · Free with Kindle Unlimited

    More News tutorials

    More from GenAI Agents