This Streamlit application implements a sophisticated news processing pipeline using multiple specialized AI agents to search, synthesize, and summarize news articles. It leverages the Llama 3.2 model via Ollama and DuckDuckGo search to provide comprehensive news analysis.
-
Multi-agent architecture with specialized roles:
- News Searcher: Finds recent news articles
- News Synthesizer: Analyzes and combines information
- News Summarizer: Creates concise, professional summaries
-
Real-time news search using DuckDuckGo
-
AP/Reuters-style summary generation
-
User-friendly Streamlit interface
- Clone the GitHub repository
git clone https://github.com/your-username/ai-news-processor.git
cd awesome-llm-apps/ai_agent_tutorials/local_news_agent_openai_swarm
- Install the required dependencies:
pip install -r requirements.txt
- Pull and Run Llama 3.2 using Ollama:
# Pull the model
ollama pull llama3.2
# Verify installation
ollama list
# Run the model (optional test)
ollama run llama3.2
- Create a .env file with your configurations:
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_API_KEY=fake-key
- Run the Streamlit app
streamlit run news_agent.py