# nisaaragharia/advanced_rag architecture

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

- Interactive diagram: https://gitdiagram.com/nisaaragharia/advanced_rag
- Repository: https://github.com/nisaaragharia/advanced_rag

## Overview

Advanced_RAG is a collection of LangChain notebooks teaching RAG techniques, rather than a single integrated runtime application. The documented basic workflow runs from a user query to a generated response; the remaining notebooks cover distinct retrieval and agentic approaches. Source excerpts were unavailable, so relationships beyond the README’s stated basic flow are not inferred.

Main entry points: [`01_Introduction_To_RAG.ipynb`](https://github.com/nisaaragharia/advanced_rag/blob/main/01_Introduction_To_RAG.ipynb) (Basic RAG)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["RAG Foundations"]
  node_intro["Basic RAG"]
  node_query["Query Transformations"]
  node_routing["Datasource Routing"]
  node_indexing["Vector Indexing"]
end

subgraph group_retrieval["Retrieval Techniques"]
  node_mechanisms["Retrieval Mechanisms"]
end

subgraph group_agents["Reflective Agents"]
  node_selfreflection["Self-Reflection RAG"]
  node_agentic["Agentic RAG"]
  node_adaptive["Adaptive Agentic RAG"]
  node_corrective["Corrective Agentic RAG"]
end

subgraph group_local["Local Agent"]
  node_llama["Local Llama Agent"]
end

node_user(("User"))
node_response["Generated Response"]

node_user -->|"submits query"| node_intro
node_intro -->|"generates response"| node_response

click node_intro "https://github.com/nisaaragharia/advanced_rag/blob/main/01_Introduction_To_RAG.ipynb"
click node_query "https://github.com/nisaaragharia/advanced_rag/blob/main/02_Query_Transformations.ipynb"
click node_routing "https://github.com/nisaaragharia/advanced_rag/blob/main/03_Routing_To_Datasources.ipynb"
click node_indexing "https://github.com/nisaaragharia/advanced_rag/blob/main/04_Indexing_To_VectorDBs.ipynb"
click node_mechanisms "https://github.com/nisaaragharia/advanced_rag/blob/main/05_Retrieval_Mechanisms.ipynb"
click node_selfreflection "https://github.com/nisaaragharia/advanced_rag/blob/main/06_Self_Reflection_Rag.ipynb"
click node_agentic "https://github.com/nisaaragharia/advanced_rag/blob/main/07_Agentic_Rag.ipynb"
click node_adaptive "https://github.com/nisaaragharia/advanced_rag/blob/main/08_Adaptive_Rag_Agent.ipynb"
click node_corrective "https://github.com/nisaaragharia/advanced_rag/blob/main/09_Corrective_RAG_Agent.ipynb"
click node_llama "https://github.com/nisaaragharia/advanced_rag/blob/main/10_LLAMA_3_Rag_Agent_Local.ipynb"

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_intro,node_query,node_routing,node_indexing,node_user toneBlue
class node_mechanisms toneAmber
class node_selfreflection,node_agentic,node_adaptive,node_corrective toneMint
class node_llama toneRose
class node_response toneIndigo
```

## Components

### RAG Foundations

- [Basic RAG](https://github.com/nisaaragharia/advanced_rag/blob/main/01_Introduction_To_RAG.ipynb): `01_Introduction_To_RAG.ipynb`
- [Query Transformations](https://github.com/nisaaragharia/advanced_rag/blob/main/02_Query_Transformations.ipynb): `02_Query_Transformations.ipynb`
- [Datasource Routing](https://github.com/nisaaragharia/advanced_rag/blob/main/03_Routing_To_Datasources.ipynb): `03_Routing_To_Datasources.ipynb`
- [Vector Indexing](https://github.com/nisaaragharia/advanced_rag/blob/main/04_Indexing_To_VectorDBs.ipynb): `04_Indexing_To_VectorDBs.ipynb`

### Retrieval Techniques

- [Retrieval Mechanisms](https://github.com/nisaaragharia/advanced_rag/blob/main/05_Retrieval_Mechanisms.ipynb): `05_Retrieval_Mechanisms.ipynb`

### Reflective Agents

- [Self-Reflection RAG](https://github.com/nisaaragharia/advanced_rag/blob/main/06_Self_Reflection_Rag.ipynb): `06_Self_Reflection_Rag.ipynb`
- [Agentic RAG](https://github.com/nisaaragharia/advanced_rag/blob/main/07_Agentic_Rag.ipynb): `07_Agentic_Rag.ipynb`
- [Adaptive Agentic RAG](https://github.com/nisaaragharia/advanced_rag/blob/main/08_Adaptive_Rag_Agent.ipynb): `08_Adaptive_Rag_Agent.ipynb`
- [Corrective Agentic RAG](https://github.com/nisaaragharia/advanced_rag/blob/main/09_Corrective_RAG_Agent.ipynb): `09_Corrective_RAG_Agent.ipynb`

### Local Agent

- [Local Llama Agent](https://github.com/nisaaragharia/advanced_rag/blob/main/10_LLAMA_3_Rag_Agent_Local.ipynb): `10_LLAMA_3_Rag_Agent_Local.ipynb`

### Other components

- **User**
- **Generated Response**

## Connections

- User → Basic RAG: submits query (evidence: `README.md`)
- Basic RAG → Generated Response: generates response (evidence: `README.md`)
