# abhishek1234563/multi-agent-research-assistant architecture

> Architecture diagram of the GitHub repository abhishek1234563/multi-agent-research-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhishek1234563/multi-agent-research-assistant
- Repository: https://github.com/abhishek1234563/multi-agent-research-assistant

## Overview

ResearchMind accepts a topic through its Streamlit interface (or the standalone pipeline runner), searches for sources, reads selected pages, drafts a report, and evaluates it. Specialized LangChain agents and chains use Groq; their web tools use Tavily search and HTTP page scraping. The UI displays the intermediate and final outputs and offers report download. The excerpts show the UI and pipeline invoking the stages directly; the separate pipeline runner is an alternate entry point. Unsampled UI code and integrations are represented only where the README or shown code supports them.

Main entry points: [`app.py`](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/app.py) (Research UI), [`pipeline.py`](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/pipeline.py) (Pipeline runner), [`agents.py`](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py) (Search agent), [`tools.py`](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/tools.py) (Web tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_streamlit["Research UI<br/>[app.py]"]
  node_cli["Pipeline runner<br/>[pipeline.py]"]
end

subgraph group_workflow["Research workflow"]
  node_search["Search agent<br/>[agents.py]"]
  node_reader["Reader agent<br/>[agents.py]"]
  node_writer["Report writer<br/>[agents.py]"]
  node_critic["Report critic<br/>[agents.py]"]
end

subgraph group_integrations["Tools and models"]
  node_webtools["Web tools<br/>[tools.py]"]
  node_tavily["Tavily search"]
  node_webpages["Web pages"]
  node_groq["Groq model"]
end

subgraph group_reliability["Resilience"]
  node_backoff["Retry helper<br/>[resilience.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"submits topic"| node_streamlit
node_researcher -->|"enters topic"| node_cli
node_streamlit -->|"invokes"| node_search
node_streamlit -->|"invokes"| node_reader
node_streamlit -->|"invokes"| node_writer
node_streamlit -->|"invokes"| node_critic
node_cli -->|"invokes"| node_search
node_cli -->|"invokes"| node_reader
node_cli -->|"invokes"| node_writer
node_cli -->|"invokes"| node_critic
node_search -->|"uses search tool"| node_webtools
node_reader -->|"uses scrape tool"| node_webtools
node_webtools -->|"searches web"| node_tavily
node_webtools -->|"scrapes pages"| node_webpages
node_search -->|"runs model"| node_groq
node_reader -->|"runs model"| node_groq
node_writer -->|"runs model"| node_groq
node_critic -->|"runs model"| node_groq
node_streamlit -->|"wraps calls"| node_backoff
node_cli -->|"wraps calls"| node_backoff

click node_streamlit "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/app.py"
click node_cli "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/pipeline.py"
click node_search "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py"
click node_reader "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py"
click node_writer "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py"
click node_critic "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py"
click node_webtools "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/tools.py"
click node_backoff "https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/resilience.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit,node_cli toneBlue
class node_search,node_reader,node_writer,node_critic toneAmber
class node_webtools,node_tavily,node_webpages,node_groq toneMint
class node_backoff toneRose
class node_researcher toneIndigo
```

## Components

### Entry points

- [Research UI](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/app.py): `app.py`
- [Pipeline runner](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/pipeline.py): `pipeline.py`

### Research workflow

- [Search agent](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py): `agents.py`
- [Reader agent](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py): `agents.py`
- [Report writer](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py): `agents.py`
- [Report critic](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/agents.py): `agents.py`

### Tools and models

- [Web tools](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/tools.py): `tools.py`
- **Tavily search**
- **Web pages**
- **Groq model**

### Resilience

- [Retry helper](https://github.com/abhishek1234563/multi-agent-research-assistant/blob/main/resilience.py): `resilience.py`

### Other components

- **Researcher**

## Connections

- Researcher → Research UI: submits topic (evidence: `README.md`)
- Researcher → Pipeline runner: enters topic (evidence: `pipeline.py`)
- Research UI → Search agent: invokes (evidence: `app.py`)
- Research UI → Reader agent: invokes (evidence: `app.py`)
- Research UI → Report writer: invokes (evidence: `app.py`)
- Research UI → Report critic: invokes (evidence: `app.py`)
- Pipeline runner → Search agent: invokes (evidence: `pipeline.py`)
- Pipeline runner → Reader agent: invokes (evidence: `pipeline.py`)
- Pipeline runner → Report writer: invokes (evidence: `pipeline.py`)
- Pipeline runner → Report critic: invokes (evidence: `pipeline.py`)
- Search agent → Web tools: uses search tool (evidence: `agents.py`)
- Reader agent → Web tools: uses scrape tool (evidence: `agents.py`)
- Web tools → Tavily search: searches web (evidence: `tools.py`)
- Web tools → Web pages: scrapes pages (evidence: `tools.py`)
- Search agent → Groq model: runs model (evidence: `agents.py`)
- Reader agent → Groq model: runs model (evidence: `agents.py`)
- Report writer → Groq model: runs model (evidence: `agents.py`)
- Report critic → Groq model: runs model (evidence: `agents.py`)
- Research UI → Retry helper: wraps calls (evidence: `app.py`)
- Pipeline runner → Retry helper: wraps calls (evidence: `pipeline.py`)
