ArXivMind is an intelligent, multi-agent system designed to accelerate academic research. Built with Microsoft's AutoGen framework, it automates the process of finding and summarizing scholarly articles from arXiv. The system deploys two specialized AI agents that collaborate to conduct a literature review on any given topic, delivering a concise and structured report directly to the user.
This project offers two modes of operation:
- A command-line interface (
backend.py) for running a predefined search query. - An interactive web application (
streamlit.py) built with Streamlit for a dynamic, user-friendly experience.
- Multi-Agent Collaboration: Utilizes a
search_agentto craft optimal queries and retrieve papers from arXiv, and asummarizeragent to analyze the findings and generate a high-quality literature review. - Automated Literature Review: Generates a markdown-formatted report that includes an introduction, detailed summaries of each paper (with links, authors, contributions, and future scope), and a final takeaway.
- Interactive Web UI: Features a clean and simple interface built with Streamlit, allowing users to input their research topic and select the number of papers to review.
- Powered by OpenAI: Leverages the
gpt-4o-minimodel for intelligent query generation and sophisticated text summarization. - Real-time Streaming: Streams the agents' conversation and final report in real-time, providing transparency into the research process.
See ArXivMind in action! The demo shows how to use the interactive Streamlit web application to generate a literature review. Click the image below to watch the video.
Follow these instructions to set up and run ArXivMind on your local machine.
- Anaconda or Miniconda installed.
- An OpenAI API key.
First, clone the project repository from GitHub.
git clone [https://github.com/YOUR_GITHUB_USERNAME/ArXivMind.git](https://github.com/YOUR_GITHUB_USERNAME/ArXivMind.git)
cd ArXivMindNote: Remember to replace YOUR_GITHUB_USERNAME with your actual GitHub username.
Create a dedicated Conda environment for the project using Python 3.12.
conda create -n arxivmind python=3.12 -y
conda activate arxivmindInstall all the required Python packages from the requirements.txt file.
pip install -r requirements.txtYou need to provide your OpenAI API key for the agents to function.
- Create a file named
.envin the root directory of the project. - Add your OpenAI API key to the file as shown below:
OPENAI_API_KEY="sk-..."ArXivMind can be run in two different modes.
This mode runs a hardcoded literature review task directly in your terminal. It's useful for testing the backend logic. By default, it searches for 5 papers on "Artificial Intelligence".
To run it, execute the backend.py script:
python backend.pyThe script will stream the conversation between the search_agent and the summarizer, followed by the final literature review.
This is the primary mode for using ArXivMind. It launches a local web server with a user-friendly Streamlit interface.
To start the web application, run the following command in your terminal:
streamlit run streamlit.pyThis will open a new tab in your web browser at http://localhost:8501. You can then enter a research topic, select the number of papers, and click "Search" to begin.
.
├── backend.py # Script for terminal-based agent interaction
├── streamlit.py # Script to launch the interactive Streamlit web UI
├── requirements.txt # Python dependencies
├── .env # File for API keys (you need to create this)
└── README.md # This file