Skip to content

AI-driven pipeline for researching, writing, and proofreading technology trend reports and articles using CrewAI, LangChain, and Groq LLMs

Notifications You must be signed in to change notification settings

Abs-Futy7/NewsCrewAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsAgent: AI-Powered Technology Intelligence Newsletter

NewsAgent is an AI-driven pipeline for researching, writing, and proofreading technology trend reports and articles. It leverages CrewAI, LangChain, and Groq LLMs to automate the process of gathering insights, crafting compelling narratives, and ensuring high-quality, well-cited content.

Features

  • Automated Research: Tracks emerging breakthroughs, analyzes trends, and validates findings from multiple sources.
  • AI Writing: Transforms complex technical topics into engaging, accessible articles.
  • Proofreading & Sourcing: Ensures clarity, accuracy, and provides further reading sources.
  • Internet Search Integration: Uses SerperDevTool for real-time web search.

Project Structure

  agents.py        # Defines AI agents (researcher, writer, proofreader)
  crew.py          # Orchestrates the workflow
  tasks.py         # Defines tasks for each agent
  tools.py         # Sets up internet search tool
  requirements.txt # Python dependencies

Setup Instructions

1. Clone the Repository

git clone <your-repo-url>
cd NewsAgent/backend

2. Create and Activate a Virtual Environment

python -m venv .venv
.venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Set API Keys

Create a .env file in the backend directory with the following content:

GROQ_API_KEY=your-groq-api-key-here
SERPER_API_KEY=your-serper-api-key-here

5. Run the Pipeline

python crew.py

How It Works

  • Agents are defined in agents.py using CrewAI and LangChain Groq models.
  • Tasks in tasks.py specify what each agent does (research, write, proofread).
  • Crew in crew.py orchestrates the agents and tasks in sequence.
  • Tools in tools.py provide internet search capabilities.

Output

  • The final, proofread article is saved as newsletter.md in the backend directory.

Customization

  • Change the topic variable in crew.py to research and write about a different subject.
  • Modify agent goals, backstories, or tasks for different workflows.

Requirements

  • Python 3.9+
  • API keys for Groq and Serper

About

AI-driven pipeline for researching, writing, and proofreading technology trend reports and articles using CrewAI, LangChain, and Groq LLMs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages