# techsimpluslearning/complete-genai-course-python-langchain architecture

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

- Interactive diagram: https://gitdiagram.com/techsimpluslearning/complete-genai-course-python-langchain
- Repository: https://github.com/techsimpluslearning/complete-genai-course-python-langchain

## Overview

This repository is a collection of GenAI course examples, not one integrated application. Its clearest end-to-end workflows are Streamlit chat agents for task management and PDF question answering. The notebooks cover a broader learning path—prompting, retrieval, agents, and graph workflows—but their internal connections are not shown in the excerpts, so they are represented as course modules rather than an inferred pipeline. The app relationships below are supported by the sampled source; notebook capabilities are based on their filenames and the README.

Main entry points: [`apps/5_rag_agent.py`](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py) (PDF Q&A UI), [`apps/4_sql_agent.py`](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py) (TaskBot UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Streamlit Projects"]
  node_sql_app["TaskBot UI<br/>[4_sql_agent.py]"]
  node_pdf_app["PDF Q&amp;A UI<br/>[5_rag_agent.py]"]
  node_qna_app["Q&amp;A Bot<br/>[1_qna_bot.py]"]
  node_google_agent["Google Agent<br/>[2_google_agent.py]"]
  node_groq_qna["Groq Q&amp;A Bot"]
  node_langgraph_qna["LangGraph Q&amp;A"]
end

subgraph group_runtime["Agent Runtime"]
  node_task_agent["Task Agent<br/>[4_sql_agent.py]"]
  node_sql_toolkit["SQL Tools<br/>[4_sql_agent.py]"]
  node_task_db[("Task Database<br/>[4_sql_agent.py]")]
  node_pdf_loader["PDF Loading<br/>[5_rag_agent.py]"]
  node_chunking["Text Chunking<br/>[5_rag_agent.py]"]
  node_vector_store[("Vector Store<br/>[5_rag_agent.py]")]
  node_retrieval_tool["Context Retrieval<br/>[5_rag_agent.py]"]
  node_rag_agent["RAG Agent<br/>[5_rag_agent.py]"]
end

subgraph group_lessons["Notebook Lessons"]
  node_rag_load["RAG Loading"]
  node_rag_split["RAG Splitting"]
  node_embeddings["Vector Embeddings"]
  node_pdf_qa_lesson["PDF Q&amp;A"]
  node_rag_agent_lesson["RAG Agent"]
  node_validation["Data Validation"]
  node_basic_graph["Basic LangGraph"]
  node_graph_qna["LangGraph Q&amp;A"]
  node_multi_agent["Multi-Agent"]
  node_rag_graph["RAG With Graph"]
  node_basics["LangChain Basics"]
  node_prompting["Prompt Chains"]
  node_memory["Conversation Memory"]
  node_structured_output["Structured Output"]
  node_ollama["Ollama App<br/>[5_ollama_app.ipynb]"]
  node_groq_lesson["Groq LangChain"]
  node_streaming["Streaming Responses"]
  node_basic_agents["Basic Agents"]
  node_search_agent["Search Agent"]
end

node_user(("User"))

node_user -->|"sends task"| node_sql_app
node_sql_app -->|"invokes"| node_task_agent
node_sql_app -->|"creates table"| node_task_db
node_sql_app -->|"builds tools"| node_sql_toolkit
node_sql_toolkit -->|"queries"| node_task_db
node_user -->|"uploads and asks"| node_pdf_app
node_pdf_app -->|"loads PDFs"| node_pdf_loader
node_pdf_app -->|"splits documents"| node_chunking
node_pdf_app -->|"embeds documents"| node_vector_store
node_pdf_app -->|"creates and invokes"| node_rag_agent
node_rag_agent -->|"calls tool"| node_retrieval_tool
node_retrieval_tool -->|"searches"| node_vector_store

click node_sql_app "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py"
click node_task_agent "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py"
click node_sql_toolkit "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py"
click node_task_db "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py"
click node_pdf_app "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_pdf_loader "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_chunking "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_vector_store "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_retrieval_tool "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_rag_agent "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py"
click node_qna_app "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/1_qna_bot.py"
click node_google_agent "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/2_google_agent.py"
click node_groq_qna "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/3_qna_bot_with_groq.py"
click node_langgraph_qna "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/6_langgraph_qna_bot.py"
click node_rag_load "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/10_rag_load_document.ipynb"
click node_rag_split "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/11_rag_spliter.ipynb"
click node_embeddings "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/12_vector_embeddings.ipynb"
click node_pdf_qa_lesson "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/13_rag_based_pdf_qna_bot.ipynb"
click node_rag_agent_lesson "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/14_rag_ai_agent.ipynb"
click node_validation "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/15_pydentic_data_validation.ipynb"
click node_basic_graph "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/16_basic_langgraph.ipynb"
click node_graph_qna "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/17_langgraph_qna_bot.ipynb"
click node_multi_agent "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/18_multi_ai_agent.ipynb"
click node_rag_graph "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/19_rag_with_graph.ipynb"
click node_basics "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/1_basic_langchain_with_openai.ipynb"
click node_prompting "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/2_prompt_cains.ipynb"
click node_memory "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/3_basic_memory_with_langchain.ipynb"
click node_structured_output "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/4_strectured_output.ipynb"
click node_ollama "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/5_ollama_app.ipynb"
click node_groq_lesson "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/6_groq_langchain.ipynb"
click node_streaming "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/7_streaming_response.ipynb"
click node_basic_agents "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/8_basic_agents.ipynb"
click node_search_agent "https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/9_google_search_agent.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_sql_app,node_pdf_app,node_qna_app,node_google_agent,node_groq_qna,node_langgraph_qna,node_user toneBlue
class node_task_agent,node_sql_toolkit,node_task_db,node_pdf_loader,node_chunking,node_vector_store,node_retrieval_tool,node_rag_agent toneAmber
class node_rag_load,node_rag_split,node_embeddings,node_pdf_qa_lesson,node_rag_agent_lesson,node_validation,node_basic_graph,node_graph_qna,node_multi_agent,node_rag_graph,node_basics,node_prompting,node_memory,node_structured_output,node_ollama,node_groq_lesson,node_streaming,node_basic_agents,node_search_agent toneMint
```

## Components

### Streamlit Projects

- [TaskBot UI](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py): `apps/4_sql_agent.py`
- [PDF Q&A UI](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`
- [Q&A Bot](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/1_qna_bot.py): `apps/1_qna_bot.py`
- [Google Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/2_google_agent.py): `apps/2_google_agent.py`
- [Groq Q&A Bot](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/3_qna_bot_with_groq.py): `apps/3_qna_bot_with_groq.py`
- [LangGraph Q&A](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/6_langgraph_qna_bot.py): `apps/6_langgraph_qna_bot.py`

### Agent Runtime

- [Task Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py): `apps/4_sql_agent.py`
- [SQL Tools](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py): `apps/4_sql_agent.py`
- [Task Database](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/4_sql_agent.py): `apps/4_sql_agent.py`
- [PDF Loading](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`
- [Text Chunking](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`
- [Vector Store](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`
- [Context Retrieval](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`
- [RAG Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/apps/5_rag_agent.py): `apps/5_rag_agent.py`

### Notebook Lessons

- [RAG Loading](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/10_rag_load_document.ipynb): `notebooks/10_rag_load_document.ipynb`
- [RAG Splitting](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/11_rag_spliter.ipynb): `notebooks/11_rag_spliter.ipynb`
- [Vector Embeddings](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/12_vector_embeddings.ipynb): `notebooks/12_vector_embeddings.ipynb`
- [PDF Q&A](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/13_rag_based_pdf_qna_bot.ipynb): `notebooks/13_rag_based_pdf_qna_bot.ipynb`
- [RAG Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/14_rag_ai_agent.ipynb): `notebooks/14_rag_ai_agent.ipynb`
- [Data Validation](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/15_pydentic_data_validation.ipynb): `notebooks/15_pydentic_data_validation.ipynb`
- [Basic LangGraph](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/16_basic_langgraph.ipynb): `notebooks/16_basic_langgraph.ipynb`
- [LangGraph Q&A](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/17_langgraph_qna_bot.ipynb): `notebooks/17_langgraph_qna_bot.ipynb`
- [Multi-Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/18_multi_ai_agent.ipynb): `notebooks/18_multi_ai_agent.ipynb`
- [RAG With Graph](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/19_rag_with_graph.ipynb): `notebooks/19_rag_with_graph.ipynb`
- [LangChain Basics](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/1_basic_langchain_with_openai.ipynb): `notebooks/1_basic_langchain_with_openai.ipynb`
- [Prompt Chains](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/2_prompt_cains.ipynb): `notebooks/2_prompt_cains.ipynb`
- [Conversation Memory](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/3_basic_memory_with_langchain.ipynb): `notebooks/3_basic_memory_with_langchain.ipynb`
- [Structured Output](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/4_strectured_output.ipynb): `notebooks/4_strectured_output.ipynb`
- [Ollama App](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/5_ollama_app.ipynb): `notebooks/5_ollama_app.ipynb`
- [Groq LangChain](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/6_groq_langchain.ipynb): `notebooks/6_groq_langchain.ipynb`
- [Streaming Responses](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/7_streaming_response.ipynb): `notebooks/7_streaming_response.ipynb`
- [Basic Agents](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/8_basic_agents.ipynb): `notebooks/8_basic_agents.ipynb`
- [Search Agent](https://github.com/techsimpluslearning/complete-genai-course-python-langchain/blob/main/notebooks/9_google_search_agent.ipynb): `notebooks/9_google_search_agent.ipynb`

### Other components

- **User**

## Connections

- User → TaskBot UI: sends task (evidence: `apps/4_sql_agent.py`)
- TaskBot UI → Task Agent: invokes (evidence: `apps/4_sql_agent.py`)
- TaskBot UI → Task Database: creates table (evidence: `apps/4_sql_agent.py`)
- TaskBot UI → SQL Tools: builds tools (evidence: `apps/4_sql_agent.py`)
- SQL Tools → Task Database: queries (evidence: `apps/4_sql_agent.py`)
- User → PDF Q&A UI: uploads and asks (evidence: `apps/5_rag_agent.py`)
- PDF Q&A UI → PDF Loading: loads PDFs (evidence: `apps/5_rag_agent.py`)
- PDF Q&A UI → Text Chunking: splits documents (evidence: `apps/5_rag_agent.py`)
- PDF Q&A UI → Vector Store: embeds documents (evidence: `apps/5_rag_agent.py`)
- PDF Q&A UI → RAG Agent: creates and invokes (evidence: `apps/5_rag_agent.py`)
- RAG Agent → Context Retrieval: calls tool (evidence: `apps/5_rag_agent.py`)
- Context Retrieval → Vector Store: searches (evidence: `apps/5_rag_agent.py`)
