FastAPI • LangGraph • LangChain • Groq • React • TypeScript
A modular AI research assistant that orchestrates multiple AI agents to generate structured, source-backed research reports.
- Overview
- Features
- System Architecture
- Backend Architecture
- LangGraph Workflow
- Backend Execution Flow
- Project Structure
- Tech Stack
- Installation
- API
- Future Improvements
- Resume Highlights
ResearchFlow AI is a production-style multi-agent research assistant built using FastAPI, LangGraph, LangChain, Groq LLMs, React and TypeScript.
Instead of relying on a single LLM response, the application decomposes a research problem into multiple AI agents that collaborate through a shared LangGraph state.
- 🤖 Multi-Agent AI
- 🔄 LangGraph Stateful Workflow
- ⚡ FastAPI REST APIs
- 💻 React + TypeScript UI
- 📝 Markdown Report Generation
- 📚 Source Citation Support
- 🧩 Modular Architecture
User
│
▼
React Frontend
│
▼
FastAPI Backend
│
▼
LangGraph Workflow
│
├── Planner
├── Researcher
├── Verifier
└── Writer
│
▼
Markdown Report
│
▼
JSON Response
flowchart TD
A([START]) --> B[Planner]
B --> C[Researcher]
C --> D[Verifier]
D --> E{Enough Information?}
E -- No --> C
E -- Yes --> F[Writer]
F --> G([END])
sequenceDiagram
participant User
participant FastAPI
participant LangGraph
participant Planner
participant Researcher
participant Verifier
participant Writer
User->>FastAPI: POST /research
FastAPI->>LangGraph: Invoke Graph
LangGraph->>Planner: Plan
Planner->>Researcher: Collect Data
Researcher->>Verifier: Validate
Verifier-->>Researcher: Retry (if required)
Verifier->>Writer: Verified Findings
Writer->>FastAPI: Markdown Report
FastAPI-->>User: JSON Response
backend/
├── app/
│ ├── api/
│ ├── agents/
│ ├── graph/
│ ├── core/
│ ├── services/
│ ├── schemas/
│ ├── utils/
│ └── main.py
frontend/
└── src/
├── components/
├── pages/
├── services/
├── hooks/
├── types/
└── App.tsx
- FastAPI
- LangGraph
- LangChain
- Groq
- Python
- Pydantic
- React
- TypeScript
- Tailwind CSS
- Axios
- Vite
pip install -r requirements.txt
uvicorn app.main:app --reloadnpm install
npm run dev{
"query":"Explain LangGraph"
}Response
{
"report":"...",
"sources":[]
}- PDF Upload
- RAG
- Docker
- Authentication
- Streaming
- Deployment
- History
- Built a production-style Multi-Agent Research Assistant using FastAPI, LangGraph, LangChain, Groq and React.
- Designed a stateful LangGraph workflow with Planner, Researcher, Verifier and Writer agents.
- Developed scalable REST APIs with modular backend architecture.
MIT
Made with ❤️ by Aditya Kumar