Skip to content
ย 
ย 

Latest commit

ย 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฌ ResearchAI โ€” Multi-Agent Research Workspace

An AI-powered multi-agent research platform that transforms complex research questions into structured, evidence-backed insights using autonomous AI agents, real-time web search, RAG, vector databases, and knowledge graphs.

ResearchAI is a full-stack MERN-based AI research workspace that automates the complete research lifecycle โ€” from research planning and source discovery to analysis, fact-checking, synthesis, knowledge visualization, comparison, deep-dive research, and PDF report generation.


๐Ÿš€ Features

  • ๐Ÿค– Multi-Agent Research โ€” Planner, Researcher, Analyst, Fact Checker and Synthesizer agents.
  • ๐ŸŒ Real-Time Web Search โ€” Tavily-powered search with source URLs and citations.
  • ๐Ÿ“š Document RAG โ€” Upload PDF/TXT documents and perform contextual research using Pinecone.
  • ๐Ÿง  Knowledge Graph โ€” Neo4j-powered entity and relationship visualization.
  • ๐Ÿ’ฌ Research Chat โ€” Ask questions about completed research and documents.
  • ๐Ÿ”ฌ Deep Dive Research โ€” Perform targeted follow-up research on individual findings.
  • โš–๏ธ Research Comparison โ€” Compare two completed research workspaces.
  • โณ Research Timeline โ€” Visualize important research events chronologically.
  • ๐Ÿ”Ž Global Search โ€” Search across workspaces and research content.
  • ๐Ÿ“„ PDF Export โ€” Export research results into structured PDF reports.
  • ๐ŸŽฏ Demo Workspaces โ€” Explore pre-built research without consuming API credits.
  • ๐Ÿ” JWT Authentication โ€” Secure registration, login and protected APIs.
  • ๐ŸŒ“ Dark/Light Mode โ€” Responsive premium interface.

๐Ÿ—๏ธ System Architecture

                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚      React + Vite      โ”‚
                         โ”‚       Frontend         โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
                                  REST API
                                      โ”‚
                         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                         โ”‚    Node.js + Express   โ”‚
                         โ”‚        Backend         โ”‚
                         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ”‚                       โ”‚                        โ”‚
              โ–ผ                       โ–ผ                        โ–ผ
       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚  MongoDB   โ”‚          โ”‚   Neo4j    โ”‚          โ”‚  Pinecone  โ”‚
       โ”‚ Applicationโ”‚          โ”‚ Knowledge  โ”‚          โ”‚ Vector DB  โ”‚
       โ”‚   Data     โ”‚          โ”‚   Graph    โ”‚          โ”‚    RAG     โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                      โ”‚
                                      โ–ผ
                           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                           โ”‚     Gemini AI      โ”‚
                           โ”‚  Multi-Agent Core  โ”‚
                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                     โ”‚
                                     โ–ผ
                           โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                           โ”‚   Tavily Search    โ”‚
                           โ”‚   Real Web Search  โ”‚
                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”„ Multi-Agent Research Workflow

                    Research Question
                           โ”‚
                           โ–ผ
                      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                      โ”‚ Planner โ”‚
                      โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Researcher โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                          โ”‚
                          โ–ผ
                      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                      โ”‚ Analyst โ”‚
                      โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Fact Checkerโ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Synthesizer โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
                 Final Research Report
                           โ”‚
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ–ผ             โ–ผ             โ–ผ
        Web Sources   Knowledge Graph  Timeline
             โ”‚
             โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ Research Chat
             โ”‚
             โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ Deep Dive
             โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ PDF Export

๐Ÿ“š RAG Pipeline

                  PDF / TXT Upload
                         โ”‚
                         โ–ผ
                  Text Extraction
                         โ”‚
                         โ–ผ
                      Chunking
                         โ”‚
                         โ–ผ
                     Embeddings
                         โ”‚
                         โ–ผ
                     Pinecone
                         โ”‚
                         โ–ผ
                 Semantic Retrieval
                         โ”‚
                         โ–ผ
                    Gemini Context
                         โ”‚
                         โ–ผ
                 Contextual Answer

๐Ÿง  Knowledge Graph Pipeline

Research Findings
       โ”‚
       โ–ผ
Gemini Entity Extraction
       โ”‚
       โ–ผ
Entities + Relationships
       โ”‚
       โ–ผ
Neo4j Graph Database
       โ”‚
       โ–ผ
Interactive Knowledge Graph

โš–๏ธ Research Comparison

Users can select two completed research workspaces and compare:

  • Similarities
  • Differences
  • Conflicting findings
  • Supporting evidence
  • Sources
  • Overall synthesis
Workspace A โ”€โ”€โ”€โ”€โ”€โ”€โ”
                  โ”œโ”€โ”€โ–บ Comparison Engine
Workspace B โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                         โ”‚
              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
              โ–ผ          โ–ผ          โ–ผ
         Similarities Differences Conflicts
                         โ”‚
                         โ–ผ
                    Final Synthesis

๐Ÿ”ฌ Deep Dive Research

Users can select any research finding and perform targeted follow-up research.

Selected Finding
       โ”‚
       โ–ผ
    Deep Dive
       โ”‚
       โ”œโ”€โ”€ Supporting Evidence
       โ”œโ”€โ”€ Latest Sources
       โ”œโ”€โ”€ Opposing Views
       โ””โ”€โ”€ Additional Context

โณ Research Timeline

ResearchAI extracts relevant dates from verified sources and organizes research events chronologically.

2022 โ”€โ”€โ”€โ”€โ”€ 2023 โ”€โ”€โ”€โ”€โ”€ 2024 โ”€โ”€โ”€โ”€โ”€ 2025 โ”€โ”€โ”€โ”€โ”€ 2026
  โ”‚           โ”‚           โ”‚           โ”‚           โ”‚
 Study       Paper       Trend      Report      Latest

๐Ÿ› ๏ธ Tech Stack

Frontend

  • React
  • Vite
  • Tailwind CSS
  • Zustand
  • React Router
  • Lucide React
  • react-force-graph-2d

Backend

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • bcryptjs

AI & Research

  • Google Gemini
  • Tavily Search API
  • Multi-Agent Architecture
  • Retrieval-Augmented Generation (RAG)
  • Prompt Engineering

Databases

  • MongoDB โ€” Application Database
  • Pinecone โ€” Vector Database
  • Neo4j โ€” Knowledge Graph

Deployment

  • Vercel

๐Ÿ“ Project Structure

ResearchAI-MultiAgent/
โ”‚
โ”œโ”€โ”€ client/
โ”‚   โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ GraphPanel/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ResearchChat/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ DeepDive/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ Workspace/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ CompareWorkspaces/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ store/
โ”‚   โ”‚   โ”œโ”€โ”€ App.jsx
โ”‚   โ”‚   โ””โ”€โ”€ main.jsx
โ”‚   โ””โ”€โ”€ package.json
โ”‚
โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”œโ”€โ”€ middleware/
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ routes/
โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ agents/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ planner/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ researcher/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ analyst/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ factChecker/
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ synthesizer/
โ”‚   โ”‚   โ”œโ”€โ”€ ai/
โ”‚   โ”‚   โ”œโ”€โ”€ rag/
โ”‚   โ”‚   โ”œโ”€โ”€ graph/
โ”‚   โ”‚   โ””โ”€โ”€ chat/
โ”‚   โ”œโ”€โ”€ app.js
โ”‚   โ”œโ”€โ”€ server.js
โ”‚   โ””โ”€โ”€ package.json
โ”‚
โ”œโ”€โ”€ .env.example
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ package.json

โš™๏ธ Prerequisites

Install the following:

  • Node.js 18+
  • npm
  • Git
  • MongoDB / MongoDB Atlas
  • Neo4j / Neo4j Aura
  • Pinecone Account
  • Google Gemini API Key
  • Tavily API Key

๐Ÿ“ฅ Installation & Setup

1. Clone Repository

git clone https://github.com/Vishal202-rgb/ResearchAI-MultiAgent.git
cd ResearchAI-MultiAgent

2. Install Backend Dependencies

cd server
npm install

3. Install Frontend Dependencies

Open another terminal:

cd client
npm install

๐Ÿ” Environment Variables

Create the following file:

server/.env

You can use .env.example as the template.

PORT=5000

MONGODB_URI=your_mongodb_connection_string

JWT_SECRET=your_secure_jwt_secret
JWT_EXPIRES_IN=7d

CLIENT_URL=http://localhost:5173
NODE_ENV=development

# Gemini
GEMINI_API_KEY=your_gemini_api_key

# Tavily
SEARCH_API_KEY=your_tavily_api_key
SEARCH_API_URL=https://api.tavily.com/search

# Pinecone
PINECONE_API_KEY=your_pinecone_api_key
PINECONE_INDEX=your_pinecone_index

# Neo4j
NEO4J_URI=your_neo4j_uri
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_neo4j_password

โš ๏ธ Never commit .env files or expose API keys publicly.


โ–ถ๏ธ Run the Application

Start Backend

From the server directory:

npm run dev

Expected output:

MongoDB connected successfully
Neo4j connected
Server running on port 5000

Backend:

http://localhost:5000

Start Frontend

Open another terminal:

cd client
npm run dev

Frontend:

http://localhost:5173

Open the frontend URL in your browser.


๐Ÿ” Authentication Flow

User
 โ”‚
 โ–ผ
Register / Login
 โ”‚
 โ–ผ
JWT Token
 โ”‚
 โ–ผ
Protected API Routes
 โ”‚
 โ–ผ
Authenticated Workspace

Passwords are securely hashed using bcryptjs.


๐ŸŒ Web Search Flow

Research Question
       โ”‚
       โ–ผ
Researcher Agent
       โ”‚
       โ–ผ
Tavily Search API
       โ”‚
       โ–ผ
Real Web Sources
       โ”‚
       โ–ผ
Analysis + Fact Checking
       โ”‚
       โ–ผ
Final Research

๐Ÿ—„๏ธ Database Responsibilities

Technology Purpose
MongoDB Users, workspaces, findings, reports and application data
Pinecone Document embeddings and semantic retrieval
Neo4j Entities and relationships for the knowledge graph
Gemini AI reasoning, agents, synthesis and analysis
Tavily Real-time web search and source discovery

๐Ÿงช Development Workflow

Run both services simultaneously:

Terminal 1
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
cd server
npm run dev

Terminal 2
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
cd client
npm run dev

Frontend:

http://localhost:5173

Backend:

http://localhost:5000

โ˜๏ธ Deployment

ResearchAI can be deployed using Vercel.

Production Environment Variables

Add these variables in:

Vercel Dashboard
โ†’ Project
โ†’ Settings
โ†’ Environment Variables

Required variables:

MONGODB_URI
JWT_SECRET
JWT_EXPIRES_IN
GEMINI_API_KEY
SEARCH_API_KEY
SEARCH_API_URL
PINECONE_API_KEY
PINECONE_INDEX
NEO4J_URI
NEO4J_USER
NEO4J_PASSWORD
CLIENT_URL
NODE_ENV

Deployment Checklist

1. Push code to GitHub
        โ†“
2. Import repository into Vercel
        โ†“
3. Configure environment variables
        โ†“
4. Configure build settings
        โ†“
5. Deploy
        โ†“
6. Test authentication
        โ†“
7. Test research workflow
        โ†“
8. Test RAG
        โ†“
9. Test Knowledge Graph
        โ†“
10. Test PDF Export

Never store production secrets inside GitHub.


๐Ÿ”ฎ Future Scope

๐Ÿ‘ฅ Collaborative Research

Enable multiple users to collaborate inside the same research workspace.

Planned capabilities:

  • Workspace sharing
  • Viewer / Editor permissions
  • Real-time collaboration
  • Comments and annotations
  • Activity history

Additional Improvements

  • Research version history
  • Citation credibility scoring
  • Multi-model support
  • Voice-based research assistant
  • Browser extension
  • Scheduled research agents
  • Team research dashboards

๐Ÿ’ก Why ResearchAI?

Traditional research requires manually:

Search
  โ†“
Read
  โ†“
Analyze
  โ†“
Verify
  โ†“
Compare
  โ†“
Organize
  โ†“
Write

ResearchAI brings these steps into one intelligent workspace:

Research Question
       โ†“
Multi-Agent Research
       โ†“
Real Web Sources
       โ†“
RAG + Documents
       โ†“
Fact Checking
       โ†“
Knowledge Graph
       โ†“
Comparison + Timeline
       โ†“
Research Chat
       โ†“
Deep Dive
       โ†“
Final Report
       โ†“
PDF Export

๐Ÿ“Œ Project Status

๐ŸŸข Production-Ready Portfolio Project

Currently implemented:

  • Multi-Agent Research
  • Real-Time Web Search
  • PDF/TXT RAG
  • Pinecone Vector Search
  • Neo4j Knowledge Graph
  • Research Chat
  • Deep Dive Research
  • Workspace Comparison
  • Research Timeline
  • Global Search
  • PDF Export
  • JWT Authentication
  • Demo Workspaces
  • Dark/Light Mode
  • Vercel Deployment

๐Ÿ‘จโ€๐Ÿ’ป Author

Vishal Kumar

B.Tech Final Year Student
Generative AI & Full Stack Developer


โญ Support

If you find ResearchAI useful, consider giving the repository a โญ on GitHub.


๐Ÿ“œ License

This project is licensed under the MIT License.

About

Multi-agent AI research platform with RAG, knowledge graphs, document intelligence, and grounded research chat.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages