/gpt-newspaper

Primary LanguagePythonMIT LicenseMIT

GPT Newspaper

Welcome to the GPT Newspaper project, an innovative autonomous agent designed to create personalized newspapers tailored to user preferences. GPT Newspaper revolutionizes the way we consume news by leveraging the power of AI to curate, write, design, and edit content based on individual tastes and interests.

🔍 Overview

GPT Newspaper consists of six specialized sub-agents in LangChain's new LangGraph Library:

  1. Search Agent: Scours the web for the latest and most relevant news.
  2. Curator Agent: Filters and selects news based on user-defined preferences and interests.
  3. Writer Agent: Crafts engaging and reader-friendly articles.
  4. Critique Agent Provide feedback to the writer until article is approved.
  5. Designer Agent: Layouts and designs the articles for an aesthetically pleasing reading experience.
  6. Editor Agent: Constructs the newspaper based on produced articles.
  7. Publisher Agent Publishes the newspaper to the frontend or desired service

Each agent plays a critical role in delivering a unique and personalized newspaper experience.

Demo

gpt-newspaper-demo.1.mp4

🌟 Features

  • Personalized Content: Get news that aligns with your interests and preferences.
  • Diverse Sources: Aggregates content from a wide range of reputable news sources.
  • Engaging Design: Enjoy a visually appealing layout and design.
  • Quality Assurance: Rigorous editing ensures reliable and accurate news reporting.
  • User-Friendly Interface: Easy-to-use platform for setting preferences and receiving your newspaper.

🛠️ How It Works

  1. Setting Preferences: Users input their interests, preferred topics, and news sources.
  2. Automated Curation: The Search and Curator Agents find and select news stories.
  3. Content Creation: The Writer Agent drafts articles, which are then designed by the Designer Agent.
  4. Newspaper Design: The Editor Agent reviews and finalizes the content.
  5. Delivery: Users receive their personalized newspaper to their mailbox.

🚀 Getting Started

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/assafelovic/gpt-newspaper.git
  2. Export your API Keys
     export TAVILY_API_KEY=<YOUR_TAVILY_API_KEY>
     export OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
  3. Install Requirements
    pip install -r requirements.txt
  4. Run the app
     python app.py
  5. Open the app in your browser
     http://localhost:5000/
  6. Enjoy!

🤝 Contributing

Interested in contributing to GPT Newspaper? We welcome contributions of all kinds! Check out our Contributor's Guide to get started.

🛡️ Disclaimer

GPT Newspaper is an experimental project and provided "as-is" without any warranty. It's intended for personal use and not as a replacement for professional news outlets.

📩 Contact Us

For support or inquiries, please reach out to us:

Join us in redefining the future of news consumption with GPT Newspaper!