A Python-based project designed to collect and pitch and summarize recent news about space and satellites. The project categorizes news by country/region and selects the top news for each region, providing a concise summary for easy reading.
This project was deployed in a docker container on an internal Linux server.
- 📰 Collects news articles about space and satellites from the past month.
- 🌍 Categorizes news by country/region.
- 🏆 Utilizes a Pitcher Agent to select the top news for each region.
- 📝 Uses a Scripter Agent to summarize the selected news in under 150 words.
- ⚙️ Compiles the Pitcher Agent & Scripter Agent by LangGraph.
- 🌐 Develops a Streamlit web interface.
- 📄 Generates a downloadable user-friendly docx document with summarized news.
Step 1 and step 2 in Conda installation. (Clone the repo)
Use the docker file in repo to build a docker image and run the project in a docker container.
docker build -t news_agent .
docker run -d --name news_agent_container -p 8502:8502 news_agent:latest
To install and set up the project, follow these steps:
- Clone the repository:
git clone https://github.com/Zifeng-Jiang/News_agent.git
- Navigate to the project directory:
cd SpaceNews Agents
- Create and activate a virtue environment(Conda):
conda create --name news_agent conda activate news_agent
- Install the required dependencies:
pip install -r requirements.txt
- Make sure you have Google Chrome browser and the corresponding version of ChromeDriver.
- Ensure you have an LLM API that can be invoked by LangChain.
To start using the News Agent, run the following command:
streamlit run main.py
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository
- Create a new branch
git checkout -b feature-branch
- Commit your changes
git commit -m 'Add new feature'
- Push to the branch
git push origin feature-branch
- Open a pull request
For any inquiries or feedback, please contact Zifeng Jiang at jzf.job@gmail.com
.