# iportilla/agentic-rag architecture

> Architecture diagram of the GitHub repository iportilla/agentic-rag, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iportilla/agentic-rag
- Repository: https://github.com/iportilla/agentic-rag

## Overview

This repository presents Agentic RAG as an architectural concept and includes example notebooks, but no source excerpts are available to verify their implementation. The graph therefore follows the README’s documented query-to-response workflow and preserves its stated reasoning, tool-use, and orchestration capabilities. Code paths point only to the existing `code` directory; relationships are evidenced by the README rather than inferred from notebook contents.

Main entry points: [`code`](https://github.com/iportilla/agentic-rag/tree/main/code) (Orchestrator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Agentic RAG workflow"]
  node_orchestrator["Orchestrator"]
  node_retrieval["Knowledge retrieval"]
  node_context["Context augmentation"]
  node_generation["Generate and verify"]
  node_response["Response"]
end

subgraph group_capabilities["Agent capabilities"]
  node_planning["Reasoning and planning"]
  node_tools["Tools and APIs"]
  node_multiagent["Multi-agent orchestration"]
end

node_user(("User"))
node_external{{"External systems"}}

node_user -->|"submits query"| node_orchestrator
node_orchestrator -->|"requests plan"| node_planning
node_planning -->|"guides retrieval"| node_retrieval
node_retrieval -->|"provides results"| node_context
node_context -->|"enables tool use"| node_tools
node_tools -->|"calls APIs"| node_external
node_tools -->|"provides tool results"| node_generation
node_generation -->|"returns answer"| node_response
node_orchestrator -.->|"supports orchestration"| node_multiagent

click node_orchestrator "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_planning "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_retrieval "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_context "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_tools "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_generation "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_response "https://github.com/iportilla/agentic-rag/tree/main/code"
click node_multiagent "https://github.com/iportilla/agentic-rag/tree/main/code"

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_orchestrator,node_retrieval,node_context,node_generation,node_response,node_user toneBlue
class node_planning,node_tools,node_multiagent toneAmber
class node_external toneIndigo
```

## Components

### Agentic RAG workflow

- [Orchestrator](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Knowledge retrieval](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Context augmentation](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Generate and verify](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Response](https://github.com/iportilla/agentic-rag/tree/main/code): `code`

### Agent capabilities

- [Reasoning and planning](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Tools and APIs](https://github.com/iportilla/agentic-rag/tree/main/code): `code`
- [Multi-agent orchestration](https://github.com/iportilla/agentic-rag/tree/main/code): `code`

### Other components

- **User**
- **External systems**

## Connections

- User → Orchestrator: submits query (evidence: `README.md`)
- Orchestrator → Reasoning and planning: requests plan (evidence: `README.md`)
- Reasoning and planning → Knowledge retrieval: guides retrieval (evidence: `README.md`)
- Knowledge retrieval → Context augmentation: provides results (evidence: `README.md`)
- Context augmentation → Tools and APIs: enables tool use (evidence: `README.md`)
- Tools and APIs → External systems: calls APIs (evidence: `README.md`)
- Tools and APIs → Generate and verify: provides tool results (evidence: `README.md`)
- Generate and verify → Response: returns answer (evidence: `README.md`)
- Orchestrator → Multi-agent orchestration: supports orchestration (evidence: `README.md`)
