# mubashranoor04/artificizen-internship architecture

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

- Interactive diagram: https://gitdiagram.com/mubashranoor04/artificizen-internship
- Repository: https://github.com/mubashranoor04/artificizen-internship

## Overview

This repository is a three-week AI-engineering training portfolio, not one integrated application. Its principal user-facing results are a CLI library manager, a task-management REST API, and a document Q&A chatbot; earlier weekly exercises build Python, backend, prompt, embedding, and RAG skills. The chatbot’s documented ingestion and question-answering stages are represented separately. Some capstone implementation details are unsampled, so those relationships are omitted rather than inferred.

Main entry points: [`Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/ingest.py) (Document ingestion), [`Month1/Week1/library_system/src/manager.py`](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/manager.py) (Library operations), [`Month1/Week2/Task Management REST API/routers/tasks.py`](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/routers/tasks.py) (Task routes), [`Month1/Week3/Document Q&A Chatbot API/rag/pipeline.py`](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/pipeline.py) (Retrieval and answers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Python foundations"]
  node_python_exercises["Python exercises"]
end

subgraph group_library["Library capstone"]
  node_library_cli["Library CLI<br/>[main.py]"]
  node_library_manager["Library operations<br/>[manager.py]"]
  node_library_models["Books and members<br/>[models.py]"]
  node_library_errors["Library exceptions<br/>[exceptions.py]"]
  node_library_json[("JSON persistence<br/>[manager.py]")]
end

subgraph group_backend["Backend training"]
  node_backend_exercises["FastAPI exercises"]
  node_task_api["Task API<br/>[main.py]"]
  node_task_auth["Authentication routes<br/>[auth.py]"]
  node_task_tasks["Task routes<br/>[tasks.py]"]
  node_task_dependencies["Auth and DB dependencies<br/>[dependencies.py]"]
  node_task_security["Security<br/>[security.py]"]
  node_task_models["Task and user models<br/>[models.py]"]
  node_task_schemas["Request and response schemas<br/>[schemas.py]"]
  node_task_db[("Task database<br/>[database.py]")]
end

subgraph group_rag["Generative AI and RAG"]
  node_ai_exercises["LLM and prompt exercises"]
  node_vector_exercises["Embedding and search exercises"]
  node_rag_practice["RAG practice pipeline"]
  node_rag_practice_utils["Loading, chunking, retrieval"]
  node_day5_rag["RAG, memory and streaming<br/>[rag_pipeline.py]"]
  node_chat_routes["Chatbot API routes<br/>[routes.py]"]
  node_chat_ingest["Document ingestion<br/>[ingest.py]"]
  node_chat_loader["Document loading<br/>[loader.py]"]
  node_chat_splitter["Text chunking<br/>[splitter.py]"]
  node_chat_embeddings["Embedding generation<br/>[embeddings.py]"]
  node_chat_vectors[("Qdrant vector store<br/>[vector_store.py]")]
  node_chat_pipeline["Retrieval and answers<br/>[pipeline.py]"]
end

node_learner(("Learner"))
node_library_user(("Library user"))
node_task_user(("API client"))
node_ai_learner(("AI learner"))
node_chat_user(("Document questioner"))
node_groq{{"Groq LLM"}}

node_learner -->|"practices"| node_python_exercises
node_library_user -->|"chooses operations"| node_library_cli
node_library_cli -->|"calls"| node_library_manager
node_library_manager -->|"creates and restores"| node_library_models
node_library_manager -->|"raises"| node_library_errors
node_library_manager -->|"reads and writes"| node_library_json
node_learner -->|"practices"| node_backend_exercises
node_task_user -.->|"sends requests"| node_task_api
node_task_api -->|"includes router"| node_task_tasks
node_task_api -.->|"registers router"| node_task_auth
node_task_tasks -->|"depends on"| node_task_dependencies
node_task_tasks -->|"queries and persists"| node_task_models
node_task_tasks -->|"validates with"| node_task_schemas
node_task_dependencies -->|"imports"| node_task_security
node_task_dependencies -.->|"imports"| node_task_db
node_ai_learner -->|"studies"| node_ai_exercises
node_ai_learner -->|"practices"| node_vector_exercises
node_ai_learner -->|"builds"| node_rag_practice
node_rag_practice -->|"uses utilities"| node_rag_practice_utils
node_ai_learner -->|"builds"| node_day5_rag
node_chat_user -.->|"asks questions"| node_chat_routes
node_chat_routes -->|"routes ingestion"| node_chat_ingest
node_chat_routes -->|"routes questions"| node_chat_pipeline
node_chat_ingest -->|"loads documents"| node_chat_loader
node_chat_ingest -->|"chunks text"| node_chat_splitter
node_chat_ingest -->|"embeds chunks"| node_chat_embeddings
node_chat_ingest -->|"stores vectors"| node_chat_vectors
node_chat_pipeline -->|"embeds query"| node_chat_embeddings
node_chat_pipeline -->|"searches"| node_chat_vectors
node_chat_pipeline -->|"requests generation"| node_groq

click node_python_exercises "https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week1"
click node_library_cli "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/main.py"
click node_library_manager "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/manager.py"
click node_library_models "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/models.py"
click node_library_errors "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/exceptions.py"
click node_library_json "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/manager.py"
click node_backend_exercises "https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week2"
click node_task_api "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/main.py"
click node_task_auth "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/routers/auth.py"
click node_task_tasks "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/routers/tasks.py"
click node_task_dependencies "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/dependencies.py"
click node_task_security "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/security.py"
click node_task_models "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/models.py"
click node_task_schemas "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/schemas.py"
click node_task_db "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/database.py"
click node_ai_exercises "https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day1"
click node_vector_exercises "https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day3"
click node_rag_practice "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Day4/complete_rag_pipeline.py"
click node_rag_practice_utils "https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day4/utils"
click node_day5_rag "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Day5/rag_pipeline.py"
click node_chat_routes "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/api/routes.py"
click node_chat_ingest "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/ingest.py"
click node_chat_loader "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/loader.py"
click node_chat_splitter "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/splitter.py"
click node_chat_embeddings "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/embeddings.py"
click node_chat_vectors "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/vector_store.py"
click node_chat_pipeline "https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/pipeline.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_python_exercises,node_library_user,node_task_user toneBlue
class node_library_cli,node_library_manager,node_library_models,node_library_errors,node_library_json toneAmber
class node_backend_exercises,node_task_api,node_task_auth,node_task_tasks,node_task_dependencies,node_task_security,node_task_models,node_task_schemas,node_task_db toneMint
class node_ai_exercises,node_vector_exercises,node_rag_practice,node_rag_practice_utils,node_day5_rag,node_chat_routes,node_chat_ingest,node_chat_loader,node_chat_splitter,node_chat_embeddings,node_chat_vectors,node_chat_pipeline toneRose
class node_learner,node_ai_learner,node_chat_user,node_groq toneIndigo
```

## Components

### Python foundations

- [Python exercises](https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week1): `Month1/Week1`

### Library capstone

- [Library CLI](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/main.py): `Month1/Week1/library_system/main.py`
- [Library operations](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/manager.py): `Month1/Week1/library_system/src/manager.py`
- [Books and members](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/models.py): `Month1/Week1/library_system/src/models.py`
- [Library exceptions](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/exceptions.py): `Month1/Week1/library_system/src/exceptions.py`
- [JSON persistence](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week1/library_system/src/manager.py): `Month1/Week1/library_system/src/manager.py`

### Backend training

- [FastAPI exercises](https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week2): `Month1/Week2`
- [Task API](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/main.py): `Month1/Week2/Task Management REST API/main.py`
- [Authentication routes](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/routers/auth.py): `Month1/Week2/Task Management REST API/routers/auth.py`
- [Task routes](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/routers/tasks.py): `Month1/Week2/Task Management REST API/routers/tasks.py`
- [Auth and DB dependencies](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/dependencies.py): `Month1/Week2/Task Management REST API/dependencies.py`
- [Security](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/security.py): `Month1/Week2/Task Management REST API/security.py`
- [Task and user models](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/models.py): `Month1/Week2/Task Management REST API/models.py`
- [Request and response schemas](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/schemas.py): `Month1/Week2/Task Management REST API/schemas.py`
- [Task database](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week2/Task%20Management%20REST%20API/database.py): `Month1/Week2/Task Management REST API/database.py`

### Generative AI and RAG

- [LLM and prompt exercises](https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day1): `Month1/Week3/Day1`
- [Embedding and search exercises](https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day3): `Month1/Week3/Day3`
- [RAG practice pipeline](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Day4/complete_rag_pipeline.py): `Month1/Week3/Day4/complete_rag_pipeline.py`
- [Loading, chunking, retrieval](https://github.com/mubashranoor04/artificizen-internship/tree/main/Month1/Week3/Day4/utils): `Month1/Week3/Day4/utils`
- [RAG, memory and streaming](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Day5/rag_pipeline.py): `Month1/Week3/Day5/rag_pipeline.py`
- [Chatbot API routes](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/api/routes.py): `Month1/Week3/Document Q&A Chatbot API/api/routes.py`
- [Document ingestion](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/ingest.py): `Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`
- [Document loading](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/loader.py): `Month1/Week3/Document Q&A Chatbot API/rag/loader.py`
- [Text chunking](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/splitter.py): `Month1/Week3/Document Q&A Chatbot API/rag/splitter.py`
- [Embedding generation](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/embeddings.py): `Month1/Week3/Document Q&A Chatbot API/rag/embeddings.py`
- [Qdrant vector store](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/vector_store.py): `Month1/Week3/Document Q&A Chatbot API/rag/vector_store.py`
- [Retrieval and answers](https://github.com/mubashranoor04/artificizen-internship/blob/main/Month1/Week3/Document%20Q%26A%20Chatbot%20API/rag/pipeline.py): `Month1/Week3/Document Q&A Chatbot API/rag/pipeline.py`

### Other components

- **Learner**
- **Library user**
- **API client**
- **AI learner**
- **Document questioner**
- **Groq LLM**

## Connections

- Learner → Python exercises: practices (evidence: `README.md`)
- Library user → Library CLI: chooses operations (evidence: `Month1/Week1/library_system/main.py`)
- Library CLI → Library operations: calls (evidence: `Month1/Week1/library_system/main.py`)
- Library operations → Books and members: creates and restores (evidence: `Month1/Week1/library_system/src/manager.py`)
- Library operations → Library exceptions: raises (evidence: `Month1/Week1/library_system/src/manager.py`)
- Library operations → JSON persistence: reads and writes (evidence: `Month1/Week1/library_system/src/manager.py`)
- Learner → FastAPI exercises: practices (evidence: `README.md`)
- API client → Task API: sends requests
- Task API → Task routes: includes router (evidence: `Month1/Week2/Task Management REST API/main.py`)
- Task API → Authentication routes: registers router
- Task routes → Auth and DB dependencies: depends on (evidence: `Month1/Week2/Task Management REST API/routers/tasks.py`)
- Task routes → Task and user models: queries and persists (evidence: `Month1/Week2/Task Management REST API/routers/tasks.py`)
- Task routes → Request and response schemas: validates with (evidence: `Month1/Week2/Task Management REST API/routers/tasks.py`)
- Auth and DB dependencies → Security: imports (evidence: `Month1/Week2/Task Management REST API/dependencies.py`)
- Auth and DB dependencies → Task database: imports
- AI learner → LLM and prompt exercises: studies (evidence: `README.md`)
- AI learner → Embedding and search exercises: practices (evidence: `README.md`)
- AI learner → RAG practice pipeline: builds (evidence: `README.md`)
- RAG practice pipeline → Loading, chunking, retrieval: uses utilities (evidence: `Month1/Week3/Day4/complete_rag_pipeline.py`)
- AI learner → RAG, memory and streaming: builds (evidence: `README.md`)
- Document questioner → Chatbot API routes: asks questions
- Chatbot API routes → Document ingestion: routes ingestion (evidence: `Month1/Week3/Document Q&A Chatbot API/api/routes.py`)
- Chatbot API routes → Retrieval and answers: routes questions (evidence: `Month1/Week3/Document Q&A Chatbot API/api/routes.py`)
- Document ingestion → Document loading: loads documents (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`)
- Document ingestion → Text chunking: chunks text (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`)
- Document ingestion → Embedding generation: embeds chunks (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`)
- Document ingestion → Qdrant vector store: stores vectors (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/ingest.py`)
- Retrieval and answers → Embedding generation: embeds query (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/pipeline.py`)
- Retrieval and answers → Qdrant vector store: searches (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/pipeline.py`)
- Retrieval and answers → Groq LLM: requests generation (evidence: `Month1/Week3/Document Q&A Chatbot API/rag/pipeline.py`)
