An AI-powered research platform that simulates a structured academic workflow using RAG (Retrieval-Augmented Generation), FAISS vector memory, and a multi-agent architecture.
This system goes beyond traditional chatbots by:
- Planning before searching
- Retrieving real-time web data
- Generating structured research reports
- Critiquing and refining outputs
- Enabling chatbot interaction with generated reports
👉 It works like a “Chat with PDF” system, but dynamically generates the document first.
- 🔍 Real-time web search using SerpAPI
- 🧩 RAG-based architecture
- 🗂️ Vector database using FAISS
- 🤖 Multi-agent system (Planner, Critic, Improver)
- 💬 Chatbot for report interaction
- ⚡ Parallel processing for faster execution
- 🎨 Streamlit-based UI
- User Input → Enter research topic
- Planner Agent → Generates search queries
- Web Retrieval → Fetches data using SerpAPI
- Summarization → Extracts key insights
- Embedding → Converts text into vectors
- Vector Storage → Stored in FAISS
- Context Retrieval → Top relevant chunks selected
- Report Generation → Structured research report
- Critic Agent → Identifies gaps
- Improver Agent → Refines final output
- Chatbot (RAG) → Answers questions from report
- Python
- Streamlit
- OpenRouter API (LLM)
- SerpAPI (Web Search)
- FAISS (Vector Database)
- SentenceTransformers (Embeddings)
- NumPy
git clone <your-repo-link>
cd project-folder
python -m venv venv
venv\Scripts\activate
pip install streamlit faiss-cpu sentence-transformers openai python-dotenv requests numpy
Create a .env file:
OPENROUTER_API_KEY=your_key_here
SERPAPI_API_KEY=your_key_here
streamlit run main.py
- The system retrieves real-time data from the web
- Converts it into embeddings using SentenceTransformers
- Stores embeddings in FAISS for similarity search
- Generates a research report using LLM
- Allows users to ask questions using a RAG-based chatbot
- ✔ Reduces hallucination
- ✔ Uses real-time data
- ✔ Structured research output
- ✔ Interactive chatbot support
- ✔ Modular and scalable design
- 📚 Integration with academic sources (ArXiv, PubMed)
- 📄 PDF export (research paper format)
- 📑 Automatic citation generation (APA/IEEE)
- 🧠 Advanced RAG (re-ranking, hybrid search)
- ☁️ Cloud deployment
This project is open-source and available under the MIT License.
Developed as part of an AI research project.