# nvidia/generativeaiexamples architecture

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

- Interactive diagram: https://gitdiagram.com/nvidia/generativeaiexamples
- Repository: https://github.com/nvidia/generativeaiexamples

## Overview

This repository is a catalog of NVIDIA generative-AI examples and reference applications, not one deployable product. Its principal user journey is for a developer to select an example, connect it to a model or retrieval service, and adapt its ingestion, querying, or agent workflow. The graph highlights the RAG runtime and several substantial product branches visible in the tree, plus README-documented capabilities whose implementation was not sampled. Unverified internal links are omitted; the README describes these branches at a high level.

Main entry points: [`community/knowledge_graph_rag/backend/server.py`](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/server.py) (Knowledge graph API), [`RAG/src/chain_server/tracing.py`](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/tracing.py) (Tracing), [`community/ai-vws-sizing-advisor/src/chains.py`](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/chains.py) (Sizing workflows), [`RAG/tools/evaluation/rag_evaluator/main.py`](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/main.py) (Evaluation entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rag["RAG runtime and tools"]
  node_chain_server["Chain server<br/>[server.py]"]
  node_chain_config["Chain configuration"]
  node_chain_tracing["Tracing<br/>[tracing.py]"]
  node_otel_langchain["LangChain telemetry"]
  node_otel_llama["LlamaIndex telemetry"]
  node_rag_eval["RAG evaluator<br/>[evaluator.py]"]
  node_answer_generator["Answer generator"]
  node_eval_entry["Evaluation entry<br/>[main.py]"]
  node_synthetic_data["Synthetic data generation"]
end

subgraph group_community["Community applications"]
  node_stream_ingest["Streaming ingestion<br/>[pipeline.py]"]
  node_kg_api["Knowledge graph API<br/>[server.py]"]
  node_kg_chat["Graph chat<br/>[chat.py]"]
  node_kg_eval["Graph evaluation<br/>[evaluation.py]"]
  node_kg_viz["Graph visualization<br/>[visualization.py]"]
  node_kg_ui["Graph UI backend<br/>[ui_backend.py]"]
  node_sizing_api["GPU sizing advisor<br/>[server.py]"]
  node_sizing_chains["Sizing workflows<br/>[chains.py]"]
  node_sizing_apply["Apply configuration"]
  node_sizing_calculator["Sizing calculator<br/>[calculator.py]"]
  node_sizing_ingestion["Document ingestion"]
end

subgraph group_industry["Industry agents"]
  node_sim_decomposition["Query decomposition"]
  node_vanna_manager["SQL retrieval manager<br/>[vanna_manager.py]"]
end

subgraph group_capabilities["Documented capabilities"]
  node_rag_notebooks["RAG framework notebooks"]
  node_data_flywheel["Data flywheel tutorials"]
  node_safer_agents["Safer agentic AI"]
  node_vision_workflows["Vision workflows"]
  node_agentic_rag["Agentic RAG example"]
end

node_developer(("Developer"))

node_developer -->|"explores connectors"| node_rag_notebooks
node_developer -->|"runs example"| node_chain_server
node_developer -->|"explores tutorials"| node_data_flywheel
node_developer -->|"explores tutorials"| node_safer_agents
node_developer -->|"explores workflows"| node_vision_workflows
node_developer -->|"explores example"| node_agentic_rag
node_chain_server -->|"uses instrumentation"| node_chain_tracing
node_chain_tracing -->|"configures callback"| node_otel_langchain
node_chain_tracing -->|"configures callback"| node_otel_llama
node_eval_entry -->|"invokes evaluation"| node_rag_eval
node_eval_entry -->|"uses generator"| node_answer_generator
node_kg_api -->|"registers router"| node_kg_ui
node_kg_api -->|"registers router"| node_kg_chat
node_kg_api -->|"registers router"| node_kg_eval
node_kg_api -->|"registers router"| node_kg_viz
node_sizing_api -->|"calls workflows"| node_sizing_chains
node_sizing_api -->|"calls configuration"| node_sizing_apply
node_sizing_chains -->|"uses calculator"| node_sizing_calculator
node_sizing_chains -->|"uses configuration"| node_sizing_apply

click node_chain_server "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/server.py"
click node_chain_config "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/configuration_wizard.py"
click node_chain_tracing "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/tracing.py"
click node_otel_langchain "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/observability/langchain/opentelemetry_callback.py"
click node_otel_llama "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/observability/llamaindex/opentelemetry_callback.py"
click node_rag_eval "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/evaluator.py"
click node_answer_generator "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/llm_answer_generator.py"
click node_eval_entry "https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/main.py"
click node_synthetic_data "https://github.com/nvidia/generativeaiexamples/tree/main/RAG/tools/evaluation/synthetic_data_generator"
click node_stream_ingest "https://github.com/nvidia/generativeaiexamples/blob/main/community/streaming_ingest_rag/morpheus_examples/streaming_ingest_rag/vdb_upload/pipeline.py"
click node_kg_api "https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/server.py"
click node_kg_chat "https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/chat.py"
click node_kg_eval "https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/evaluation.py"
click node_kg_viz "https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/visualization.py"
click node_kg_ui "https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/ui_backend.py"
click node_sizing_api "https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/server.py"
click node_sizing_chains "https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/chains.py"
click node_sizing_apply "https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/apply_configuration.py"
click node_sizing_calculator "https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/calculator.py"
click node_sizing_ingestion "https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/ingestor_server/ingestion_task_handler.py"
click node_sim_decomposition "https://github.com/nvidia/generativeaiexamples/blob/main/industries/energy/simulation-workflow-agent/sim_agent/src/simulator_agent/query_decomposition.py"
click node_vanna_manager "https://github.com/nvidia/generativeaiexamples/blob/main/industries/asset_lifecycle_management_agent/src/asset_lifecycle_management_agent/retrievers/vanna_manager.py"
click node_rag_notebooks "https://github.com/nvidia/generativeaiexamples/tree/main/RAG/notebooks"
click node_data_flywheel "https://github.com/nvidia/generativeaiexamples/tree/main/nemo/data-flywheel"
click node_safer_agents "https://github.com/nvidia/generativeaiexamples/tree/main/nemo/NeMo-Guardrails"
click node_agentic_rag "https://github.com/nvidia/generativeaiexamples/tree/main/RAG/notebooks"

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_chain_server,node_chain_config,node_chain_tracing,node_otel_langchain,node_otel_llama,node_rag_eval,node_answer_generator,node_eval_entry,node_synthetic_data toneBlue
class node_stream_ingest,node_kg_api,node_kg_chat,node_kg_eval,node_kg_viz,node_kg_ui,node_sizing_api,node_sizing_chains,node_sizing_apply,node_sizing_calculator,node_sizing_ingestion toneAmber
class node_sim_decomposition,node_vanna_manager toneMint
class node_rag_notebooks,node_data_flywheel,node_safer_agents,node_vision_workflows,node_agentic_rag toneRose
class node_developer toneIndigo
```

## Components

### RAG runtime and tools

- [Chain server](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/server.py): `RAG/src/chain_server/server.py`
- [Chain configuration](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/configuration_wizard.py): `RAG/src/chain_server/configuration_wizard.py`
- [Tracing](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/src/chain_server/tracing.py): `RAG/src/chain_server/tracing.py`
- [LangChain telemetry](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/observability/langchain/opentelemetry_callback.py): `RAG/tools/observability/langchain/opentelemetry_callback.py`
- [LlamaIndex telemetry](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/observability/llamaindex/opentelemetry_callback.py): `RAG/tools/observability/llamaindex/opentelemetry_callback.py`
- [RAG evaluator](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/evaluator.py): `RAG/tools/evaluation/rag_evaluator/evaluator.py`
- [Answer generator](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/llm_answer_generator.py): `RAG/tools/evaluation/rag_evaluator/llm_answer_generator.py`
- [Evaluation entry](https://github.com/nvidia/generativeaiexamples/blob/main/RAG/tools/evaluation/rag_evaluator/main.py): `RAG/tools/evaluation/rag_evaluator/main.py`
- [Synthetic data generation](https://github.com/nvidia/generativeaiexamples/tree/main/RAG/tools/evaluation/synthetic_data_generator): `RAG/tools/evaluation/synthetic_data_generator`

### Community applications

- [Streaming ingestion](https://github.com/nvidia/generativeaiexamples/blob/main/community/streaming_ingest_rag/morpheus_examples/streaming_ingest_rag/vdb_upload/pipeline.py): `community/streaming_ingest_rag/morpheus_examples/streaming_ingest_rag/vdb_upload/pipeline.py`
- [Knowledge graph API](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/server.py): `community/knowledge_graph_rag/backend/server.py`
- [Graph chat](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/chat.py): `community/knowledge_graph_rag/backend/routers/chat.py`
- [Graph evaluation](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/evaluation.py): `community/knowledge_graph_rag/backend/routers/evaluation.py`
- [Graph visualization](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/visualization.py): `community/knowledge_graph_rag/backend/routers/visualization.py`
- [Graph UI backend](https://github.com/nvidia/generativeaiexamples/blob/main/community/knowledge_graph_rag/backend/routers/ui_backend.py): `community/knowledge_graph_rag/backend/routers/ui_backend.py`
- [GPU sizing advisor](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/server.py): `community/ai-vws-sizing-advisor/src/server.py`
- [Sizing workflows](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/chains.py): `community/ai-vws-sizing-advisor/src/chains.py`
- [Apply configuration](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/apply_configuration.py): `community/ai-vws-sizing-advisor/src/apply_configuration.py`
- [Sizing calculator](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/calculator.py): `community/ai-vws-sizing-advisor/src/calculator.py`
- [Document ingestion](https://github.com/nvidia/generativeaiexamples/blob/main/community/ai-vws-sizing-advisor/src/ingestor_server/ingestion_task_handler.py): `community/ai-vws-sizing-advisor/src/ingestor_server/ingestion_task_handler.py`

### Industry agents

- [Query decomposition](https://github.com/nvidia/generativeaiexamples/blob/main/industries/energy/simulation-workflow-agent/sim_agent/src/simulator_agent/query_decomposition.py): `industries/energy/simulation-workflow-agent/sim_agent/src/simulator_agent/query_decomposition.py`
- [SQL retrieval manager](https://github.com/nvidia/generativeaiexamples/blob/main/industries/asset_lifecycle_management_agent/src/asset_lifecycle_management_agent/retrievers/vanna_manager.py): `industries/asset_lifecycle_management_agent/src/asset_lifecycle_management_agent/retrievers/vanna_manager.py`

### Documented capabilities

- [RAG framework notebooks](https://github.com/nvidia/generativeaiexamples/tree/main/RAG/notebooks): `RAG/notebooks`
- [Data flywheel tutorials](https://github.com/nvidia/generativeaiexamples/tree/main/nemo/data-flywheel): `nemo/data-flywheel`
- [Safer agentic AI](https://github.com/nvidia/generativeaiexamples/tree/main/nemo/NeMo-Guardrails): `nemo/NeMo-Guardrails`
- **Vision workflows**
- [Agentic RAG example](https://github.com/nvidia/generativeaiexamples/tree/main/RAG/notebooks): `RAG/notebooks`

### Other components

- **Developer**

## Connections

- Developer → RAG framework notebooks: explores connectors (evidence: `README.md`)
- Developer → Chain server: runs example (evidence: `README.md`)
- Developer → Data flywheel tutorials: explores tutorials (evidence: `README.md`)
- Developer → Safer agentic AI: explores tutorials (evidence: `README.md`)
- Developer → Vision workflows: explores workflows (evidence: `README.md`)
- Developer → Agentic RAG example: explores example (evidence: `README.md`)
- Chain server → Tracing: uses instrumentation (evidence: `RAG/src/chain_server/server.py`)
- Tracing → LangChain telemetry: configures callback (evidence: `RAG/src/chain_server/tracing.py`)
- Tracing → LlamaIndex telemetry: configures callback (evidence: `RAG/src/chain_server/tracing.py`)
- Evaluation entry → RAG evaluator: invokes evaluation (evidence: `RAG/tools/evaluation/rag_evaluator/main.py`)
- Evaluation entry → Answer generator: uses generator (evidence: `RAG/tools/evaluation/rag_evaluator/main.py`)
- Knowledge graph API → Graph UI backend: registers router (evidence: `community/knowledge_graph_rag/backend/server.py`)
- Knowledge graph API → Graph chat: registers router (evidence: `community/knowledge_graph_rag/backend/server.py`)
- Knowledge graph API → Graph evaluation: registers router (evidence: `community/knowledge_graph_rag/backend/server.py`)
- Knowledge graph API → Graph visualization: registers router (evidence: `community/knowledge_graph_rag/backend/server.py`)
- GPU sizing advisor → Sizing workflows: calls workflows (evidence: `community/ai-vws-sizing-advisor/src/server.py`)
- GPU sizing advisor → Apply configuration: calls configuration (evidence: `community/ai-vws-sizing-advisor/src/server.py`)
- Sizing workflows → Sizing calculator: uses calculator (evidence: `community/ai-vws-sizing-advisor/src/chains.py`)
- Sizing workflows → Apply configuration: uses configuration (evidence: `community/ai-vws-sizing-advisor/src/chains.py`)
