# logarathansv/pydebugger---llm-rag-integrated-learning-platform architecture

> Architecture diagram of the GitHub repository logarathansv/pydebugger---llm-rag-integrated-learning-platform, 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/logarathansv/pydebugger---llm-rag-integrated-learning-platform
- Repository: https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform

## Overview

Project-CIP is a collection of research and demo tools for document retrieval, RAG question answering, Python-oriented tutoring/debugging, and evaluation. The clearest user workflow is to upload or select documents in a Streamlit assistant, retrieve relevant passages, and generate a cited response; a separate app extracts YouTube transcripts for later use. The repository also includes a documentation scraper and text-preprocessing utility. Some paths are documented but their implementation was not sampled, so those connections are omitted rather than inferred.

Main entry points: [`langchain-openai/rag_chatbot_chroma.py`](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag_chatbot_chroma.py) (Tutor & Debug UI), [`langchain-openai/youtube.py`](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/youtube.py) (Transcript Extractor), [`webscrapping/numpy.py`](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/webscrapping/numpy.py) (Docs Scraper), [`langchain-openai/evaluation.py`](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/evaluation.py) (Evaluation Metrics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Collection &amp; Preparation"]
  node_youtube_tool["Transcript Extractor<br/>[youtube.py]"]
  node_scraper["Docs Scraper<br/>[numpy.py]"]
  node_preprocess["Text Preprocessor<br/>[process.py]"]
end

subgraph group_rag["RAG Assistants"]
  node_rag_chroma["Tutor &amp; Debug UI"]
  node_rag_deep["RAG Deep App<br/>[rag-deep.py]"]
  node_main_demo["Main Demo<br/>[main.py]"]
  node_rag_chat["Chatbot Example"]
  node_sandbox["Code Sandbox<br/>[sandbox.py]"]
end

subgraph group_evaluation["Classification &amp; Evaluation"]
  node_classifier["Python Classifier<br/>[evaluation.py]"]
  node_metrics["Evaluation Metrics<br/>[evaluation.py]"]
end

subgraph group_data["Local Data"]
  node_documents["Source Documents"]
  node_chroma[("Chroma Data")]
  node_faiss[("FAISS Indexes")]
end

node_user(("User"))
node_youtube(("YouTube"))
node_docs_site(("LangChain Docs"))
node_together{{"Together API"}}
node_azure{{"Azure OpenAI"}}

node_user -->|"asks questions"| node_rag_chroma
node_user -->|"uses assistant"| node_rag_deep
node_user -->|"submits video URL"| node_youtube_tool
node_youtube_tool -->|"fetches transcript"| node_youtube
node_youtube_tool -->|"saves transcript"| node_documents
node_scraper -->|"scrapes pages"| node_docs_site
node_scraper -.->|"provides text"| node_preprocess
node_preprocess -->|"writes cleaned text"| node_documents
node_rag_chroma -.->|"generates responses"| node_azure
node_rag_chroma -.->|"uses vector indexes"| node_faiss
node_rag_deep -.->|"uses vector store"| node_chroma
node_classifier -->|"classifies queries"| node_together
node_metrics -->|"evaluates predictions"| node_classifier
node_metrics -.->|"uses language model"| node_azure
node_rag_chroma -->|"offers debugging"| node_sandbox

click node_rag_chroma "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag_chatbot_chroma.py"
click node_rag_deep "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag-deep.py"
click node_main_demo "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/main.py"
click node_rag_chat "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag_with_chatbot.py"
click node_sandbox "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/sandbox.py"
click node_youtube_tool "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/youtube.py"
click node_scraper "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/webscrapping/numpy.py"
click node_preprocess "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/webscrapping/preprocessing/process.py"
click node_documents "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/document_store"
click node_chroma "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/chroma_db"
click node_faiss "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/vector_db"
click node_classifier "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/evaluation.py"
click node_metrics "https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/evaluation.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_youtube_tool,node_scraper,node_preprocess,node_user toneBlue
class node_rag_chroma,node_rag_deep,node_main_demo,node_rag_chat,node_sandbox toneAmber
class node_classifier,node_metrics,node_together toneMint
class node_documents,node_chroma,node_faiss toneRose
class node_youtube,node_docs_site,node_azure toneIndigo
```

## Components

### Collection & Preparation

- [Transcript Extractor](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/youtube.py): `langchain-openai/youtube.py`
- [Docs Scraper](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/webscrapping/numpy.py): `webscrapping/numpy.py`
- [Text Preprocessor](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/webscrapping/preprocessing/process.py): `webscrapping/preprocessing/process.py`

### RAG Assistants

- [Tutor & Debug UI](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag_chatbot_chroma.py): `langchain-openai/rag_chatbot_chroma.py`
- [RAG Deep App](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag-deep.py): `langchain-openai/rag-deep.py`
- [Main Demo](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/main.py): `langchain-openai/main.py`
- [Chatbot Example](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/rag_with_chatbot.py): `langchain-openai/rag_with_chatbot.py`
- [Code Sandbox](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/sandbox.py): `langchain-openai/sandbox.py`

### Classification & Evaluation

- [Python Classifier](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/evaluation.py): `langchain-openai/evaluation.py`
- [Evaluation Metrics](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/blob/master/langchain-openai/evaluation.py): `langchain-openai/evaluation.py`

### Local Data

- [Source Documents](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/document_store): `langchain-openai/document_store`
- [Chroma Data](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/chroma_db): `langchain-openai/chroma_db`
- [FAISS Indexes](https://github.com/logarathansv/pydebugger---llm-rag-integrated-learning-platform/tree/master/langchain-openai/vector_db): `langchain-openai/vector_db`

### Other components

- **User**
- **YouTube**
- **LangChain Docs**
- **Together API**
- **Azure OpenAI**

## Connections

- User → Tutor & Debug UI: asks questions (evidence: `README.md`)
- User → RAG Deep App: uses assistant (evidence: `README.md`)
- User → Transcript Extractor: submits video URL (evidence: `langchain-openai/youtube.py`)
- Transcript Extractor → YouTube: fetches transcript (evidence: `langchain-openai/youtube.py`)
- Transcript Extractor → Source Documents: saves transcript (evidence: `langchain-openai/youtube.py`)
- Docs Scraper → LangChain Docs: scrapes pages (evidence: `webscrapping/numpy.py`)
- Docs Scraper → Text Preprocessor: provides text
- Text Preprocessor → Source Documents: writes cleaned text (evidence: `webscrapping/preprocessing/process.py`)
- Tutor & Debug UI → Azure OpenAI: generates responses
- Tutor & Debug UI → FAISS Indexes: uses vector indexes
- RAG Deep App → Chroma Data: uses vector store
- Python Classifier → Together API: classifies queries (evidence: `langchain-openai/evaluation.py`)
- Evaluation Metrics → Python Classifier: evaluates predictions (evidence: `langchain-openai/evaluation.py`)
- Evaluation Metrics → Azure OpenAI: uses language model
- Tutor & Debug UI → Code Sandbox: offers debugging (evidence: `langchain-openai/rag_chatbot_chroma.py`)
