# disha-pro/chatbot-flow-form-oops-to-agentic-ai architecture

> Architecture diagram of the GitHub repository disha-pro/chatbot-flow-form-oops-to-agentic-ai, 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/disha-pro/chatbot-flow-form-oops-to-agentic-ai
- Repository: https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai

## Overview

This repository is a collection of Python learning notes and examples about LLM application development, not one integrated application. Its clearest end-to-end example is a RAG question-answering workflow; separate lessons cover conversational chat, API calls, document handling, multimodal RAG, and structured routing. The graph shows documented example flows rather than implying the tutorials are wired together. Some capabilities appear only in the file names or unsampled material, so their connections are omitted where evidence is insufficient.

Main entry points: [`RAG PIPELINE.py`](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/RAG%20PIPELINE.py) (RAG example), [`My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py) (Chatbot loop), [`VectorDatabse.py`](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/VectorDatabse.py) (Similarity retrieval), [`Pydantic STructured Output.py`](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Pydantic%20STructured%20Output.py) (Route question)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rag["RAG workflow"]
  node_rag_example["RAG example<br/>[RAG PIPELINE.py]"]
  node_documents["Knowledge documents<br/>[RAG PIPELINE.py]"]
  node_chunking["Chunking and embeddings"]
  node_vector_store[("Vector store<br/>[VectorDatabse.py]")]
  node_retrieval["Similarity retrieval<br/>[VectorDatabse.py]"]
  node_loader["Document loaders"]
  node_multimodal["Multimodal RAG<br/>[Multimodal RAG.py]"]
end

subgraph group_chat["Chat and APIs"]
  node_chatbot["Chatbot loop"]
  node_history["Conversation history"]
  node_llm_call["LLM call function"]
  node_http_api["HTTP and API concepts"]
  node_api_keys["API key handling"]
  node_json_output["JSON output"]
end

subgraph group_routing["Structured routing"]
  node_route_example["Route question"]
  node_validated_route["Validated route"]
  node_route_actions["Route actions"]
end

subgraph group_foundations["LLM foundations"]
  node_lcel["LCEL and Runnable"]
  node_exceptions["Exception handling"]
  node_oop["OOP examples<br/>[Inheritance .py]"]
end

node_user(("Questioner"))
node_groq{{"Groq LLM API"}}

node_user -->|"asks"| node_rag_example
node_rag_example -->|"uses"| node_documents
node_rag_example -->|"splits and embeds"| node_chunking
node_rag_example -->|"populates"| node_vector_store
node_rag_example -->|"invokes"| node_retrieval
node_retrieval -->|"searches"| node_vector_store
node_rag_example -->|"generates answer"| node_groq
node_loader -->|"loads as"| node_documents
node_chunking -->|"supports"| node_retrieval
node_user -->|"chats"| node_chatbot
node_chatbot -->|"updates"| node_history
node_chatbot -->|"sends messages"| node_groq
node_llm_call -->|"calls completions"| node_groq
node_http_api -->|"documents API flow"| node_groq
node_api_keys -.->|"supplies credentials"| node_http_api
node_route_example -->|"requests route"| node_groq
node_route_example -->|"parses and validates"| node_validated_route
node_validated_route -->|"selects action"| node_route_actions

click node_rag_example "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/RAG%20PIPELINE.py"
click node_documents "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/RAG%20PIPELINE.py"
click node_chunking "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Chunking%2CEmbedding%2CCosine%20SImilarity%20Search.py"
click node_vector_store "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/VectorDatabse.py"
click node_retrieval "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/VectorDatabse.py"
click node_loader "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Langchain%20Document%20Loader.py"
click node_multimodal "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Multimodal%20RAG.py"
click node_chatbot "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py"
click node_history "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py"
click node_llm_call "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/LLM%20Call%20Into%20a%20Function.py"
click node_http_api "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/APIs%20%26%20HTTP%20for%20LLM%20Applications.py"
click node_api_keys "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Environment%20Variables%20%26%20API%20Keys.py"
click node_json_output "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/JSON%20for%20LLM%20%26%20Chatbot%20Development.py"
click node_route_example "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Pydantic%20STructured%20Output.py"
click node_validated_route "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Pydantic%20STructured%20Output.py"
click node_route_actions "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py"
click node_lcel "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Langchain%20Fundamnetal%2CLCEL.%2CRunnable.py"
click node_exceptions "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Exception%20Handling.py"
click node_oop "https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Inheritance%20.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_rag_example,node_documents,node_chunking,node_vector_store,node_retrieval,node_loader,node_multimodal toneBlue
class node_chatbot,node_history,node_llm_call,node_http_api,node_api_keys,node_json_output toneAmber
class node_route_example,node_validated_route,node_route_actions,node_groq toneMint
class node_lcel,node_exceptions,node_oop toneRose
class node_user toneIndigo
```

## Components

### RAG workflow

- [RAG example](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/RAG%20PIPELINE.py): `RAG PIPELINE.py`
- [Knowledge documents](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/RAG%20PIPELINE.py): `RAG PIPELINE.py`
- [Chunking and embeddings](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Chunking%2CEmbedding%2CCosine%20SImilarity%20Search.py): `Chunking,Embedding,Cosine SImilarity Search.py`
- [Vector store](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/VectorDatabse.py): `VectorDatabse.py`
- [Similarity retrieval](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/VectorDatabse.py): `VectorDatabse.py`
- [Document loaders](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Langchain%20Document%20Loader.py): `Langchain Document Loader.py`
- [Multimodal RAG](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Multimodal%20RAG.py): `Multimodal RAG.py`

### Chat and APIs

- [Chatbot loop](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py): `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`
- [Conversation history](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py): `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`
- [LLM call function](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/LLM%20Call%20Into%20a%20Function.py): `LLM Call Into a Function.py`
- [HTTP and API concepts](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/APIs%20%26%20HTTP%20for%20LLM%20Applications.py): `APIs & HTTP for LLM Applications.py`
- [API key handling](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Environment%20Variables%20%26%20API%20Keys.py): `Environment Variables & API Keys.py`
- [JSON output](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/JSON%20for%20LLM%20%26%20Chatbot%20Development.py): `JSON for LLM & Chatbot Development.py`

### Structured routing

- [Route question](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Pydantic%20STructured%20Output.py): `Pydantic STructured Output.py`
- [Validated route](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Pydantic%20STructured%20Output.py): `Pydantic STructured Output.py`
- [Route actions](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/My_Chatbot%2CLoop%2CMemory%2CHIstory%2CSystem%20roles%2Cstructuered%20output.py): `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`

### LLM foundations

- [LCEL and Runnable](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Langchain%20Fundamnetal%2CLCEL.%2CRunnable.py): `Langchain Fundamnetal,LCEL.,Runnable.py`
- [Exception handling](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Exception%20Handling.py): `Exception Handling.py`
- [OOP examples](https://github.com/disha-pro/chatbot-flow-form-oops-to-agentic-ai/blob/main/Inheritance%20.py): `Inheritance .py`

### Other components

- **Questioner**
- **Groq LLM API**

## Connections

- Questioner → RAG example: asks (evidence: `RAG PIPELINE.py`)
- RAG example → Knowledge documents: uses (evidence: `RAG PIPELINE.py`)
- RAG example → Chunking and embeddings: splits and embeds (evidence: `RAG PIPELINE.py`)
- RAG example → Vector store: populates (evidence: `RAG PIPELINE.py`)
- RAG example → Similarity retrieval: invokes (evidence: `RAG PIPELINE.py`)
- Similarity retrieval → Vector store: searches (evidence: `VectorDatabse.py`)
- RAG example → Groq LLM API: generates answer (evidence: `RAG PIPELINE.py`)
- Document loaders → Knowledge documents: loads as (evidence: `Langchain Document Loader.py`)
- Chunking and embeddings → Similarity retrieval: supports (evidence: `Chunking,Embedding,Cosine SImilarity Search.py`)
- Questioner → Chatbot loop: chats (evidence: `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`)
- Chatbot loop → Conversation history: updates (evidence: `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`)
- Chatbot loop → Groq LLM API: sends messages (evidence: `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`)
- LLM call function → Groq LLM API: calls completions (evidence: `LLM Call Into a Function.py`)
- HTTP and API concepts → Groq LLM API: documents API flow (evidence: `APIs & HTTP for LLM Applications.py`)
- API key handling → HTTP and API concepts: supplies credentials
- Route question → Groq LLM API: requests route (evidence: `Pydantic STructured Output.py`)
- Route question → Validated route: parses and validates (evidence: `Pydantic STructured Output.py`)
- Validated route → Route actions: selects action (evidence: `My_Chatbot,Loop,Memory,HIstory,System roles,structuered output.py`)
