# inoy-252/python_practice architecture

> Architecture diagram of the GitHub repository inoy-252/python_practice, 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/inoy-252/python_practice
- Repository: https://github.com/inoy-252/python_practice

## Overview

This is a personal Python-learning portfolio: its principal workflow progresses from daily exercises in foundational Python and AI/ML-adjacent topics to standalone applied projects. The project branches demonstrate health assessment, loan underwriting, market-data analysis, and retrieval-augmented question answering. The capstone web app routes predictions through a risk engine and persistence layer; the hybrid search project orchestrates query refinement, retrieval, fusion, reranking, and answer generation. Relationships are limited to README statements and shown source/index references; several modules, including the capstone database and hybrid-search components, were not excerpted.

Main entry points: [`projects/hybrid_search_rag/pipeline.py`](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/pipeline.py) (Search Orchestrator), [`day_30/app.py`](https://github.com/inoy-252/python_practice/blob/main/day_30/app.py) (Health Web App), [`projects/hybrid_search_rag/dense_retriever.py`](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/dense_retriever.py) (Dense Search), [`projects/market_pipeline/app.py`](https://github.com/inoy-252/python_practice/blob/main/projects/market_pipeline/app.py) (Market Pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Python Curriculum"]
  node_foundations["Python Foundations<br/>[day1.py]"]
  node_control["Control And Functions<br/>[day_09.py]"]
  node_data["Data And Files<br/>[day_19.py]"]
  node_webdata["Web And Data Tools<br/>[day_22.py]"]
  node_ai_ml["AI ML Concepts<br/>[day_24.py]"]
end

subgraph group_assessment["Risk Assessment"]
  node_health_app["Health Web App<br/>[app.py]"]
  node_health_engine["Risk Scoring<br/>[engine.py]"]
  node_health_db[("Prediction History<br/>[database.py]")]
  node_health_screen["Biomarker Screener<br/>[app.py]"]
  node_loan["Loan Underwriting<br/>[app.py]"]
end

subgraph group_retrieval["Knowledge Retrieval"]
  node_librarian_v1["Librarian RAG v1<br/>[rag_v1.py]"]
  node_librarian_v2["Librarian RAG v2<br/>[rag_v2.py]"]
  node_librarian_v3["Librarian RAG v3<br/>[rag_v3.py]"]
  node_librarian_v4["Librarian RAG v4<br/>[rag_v4.py]"]
  node_hybrid_pipeline["Search Orchestrator<br/>[pipeline.py]"]
  node_query_intel["Query Intelligence"]
  node_bm25["BM25 Search<br/>[bm25.py]"]
  node_dense["Dense Search<br/>[dense_retriever.py]"]
  node_corpus["Document Corpus<br/>[data.py]"]
  node_fusion["Rank Fusion<br/>[fusion.py]"]
  node_reranker["Result Reranker<br/>[reranker.py]"]
end

subgraph group_analytics["Market Analytics"]
  node_market_app["Market Pipeline<br/>[app.py]"]
end

node_learner(("Learner"))
node_health_user(("Health App User"))
node_hybrid_user(("Engineer"))
node_market_user(("Pipeline Operator"))
node_market_api["Product Data API"]

node_learner -->|"practices"| node_foundations
node_learner -->|"practices"| node_control
node_learner -->|"practices"| node_data
node_learner -->|"practices"| node_webdata
node_learner -->|"practices"| node_ai_ml
node_health_user -->|"submits measures"| node_health_app
node_health_app -->|"scores risk"| node_health_engine
node_health_app -->|"stores prediction"| node_health_db
node_health_app -->|"reads history"| node_health_db
node_health_user -->|"checks biomarkers"| node_health_screen
node_health_user -->|"assesses eligibility"| node_loan
node_learner -->|"tries retrieval"| node_librarian_v1
node_learner -->|"queries knowledge"| node_librarian_v2
node_learner -->|"queries knowledge"| node_librarian_v3
node_learner -->|"asks questions"| node_librarian_v4
node_hybrid_user -->|"enters query"| node_hybrid_pipeline
node_hybrid_pipeline -->|"rewrites query"| node_query_intel
node_hybrid_pipeline -->|"searches keywords"| node_bm25
node_hybrid_pipeline -->|"searches vectors"| node_dense
node_hybrid_pipeline -->|"fuses rankings"| node_fusion
node_hybrid_pipeline -->|"reranks candidates"| node_reranker
node_dense -->|"embeds documents"| node_corpus
node_market_user -->|"runs pipeline"| node_market_app
node_market_app -->|"fetches products"| node_market_api

click node_foundations "https://github.com/inoy-252/python_practice/blob/main/day_01/day1.py"
click node_control "https://github.com/inoy-252/python_practice/blob/main/day_09/day_09.py"
click node_data "https://github.com/inoy-252/python_practice/blob/main/day_19/day_19.py"
click node_webdata "https://github.com/inoy-252/python_practice/blob/main/day_22/day_22.py"
click node_ai_ml "https://github.com/inoy-252/python_practice/blob/main/day_24/day_24.py"
click node_health_app "https://github.com/inoy-252/python_practice/blob/main/day_30/app.py"
click node_health_engine "https://github.com/inoy-252/python_practice/blob/main/day_30/engine.py"
click node_health_db "https://github.com/inoy-252/python_practice/blob/main/day_30/database.py"
click node_health_screen "https://github.com/inoy-252/python_practice/blob/main/projects/health_evaluator/app.py"
click node_loan "https://github.com/inoy-252/python_practice/blob/main/projects/loan_predictor/app.py"
click node_librarian_v1 "https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v1.py"
click node_librarian_v2 "https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v2.py"
click node_librarian_v3 "https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v3.py"
click node_librarian_v4 "https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v4.py"
click node_hybrid_pipeline "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/pipeline.py"
click node_query_intel "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/query_intelligence.py"
click node_bm25 "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/bm25.py"
click node_dense "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/dense_retriever.py"
click node_corpus "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/data.py"
click node_fusion "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/fusion.py"
click node_reranker "https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/reranker.py"
click node_market_app "https://github.com/inoy-252/python_practice/blob/main/projects/market_pipeline/app.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_foundations,node_control,node_data,node_webdata,node_ai_ml,node_health_user toneBlue
class node_health_app,node_health_engine,node_health_db,node_health_screen,node_loan toneAmber
class node_librarian_v1,node_librarian_v2,node_librarian_v3,node_librarian_v4,node_hybrid_pipeline,node_query_intel,node_bm25,node_dense,node_corpus,node_fusion,node_reranker,node_market_api toneMint
class node_market_app toneRose
class node_learner,node_hybrid_user,node_market_user toneIndigo
```

## Components

### Python Curriculum

- [Python Foundations](https://github.com/inoy-252/python_practice/blob/main/day_01/day1.py): `day_01/day1.py`
- [Control And Functions](https://github.com/inoy-252/python_practice/blob/main/day_09/day_09.py): `day_09/day_09.py`
- [Data And Files](https://github.com/inoy-252/python_practice/blob/main/day_19/day_19.py): `day_19/day_19.py`
- [Web And Data Tools](https://github.com/inoy-252/python_practice/blob/main/day_22/day_22.py): `day_22/day_22.py`
- [AI ML Concepts](https://github.com/inoy-252/python_practice/blob/main/day_24/day_24.py): `day_24/day_24.py`

### Risk Assessment

- [Health Web App](https://github.com/inoy-252/python_practice/blob/main/day_30/app.py): `day_30/app.py`
- [Risk Scoring](https://github.com/inoy-252/python_practice/blob/main/day_30/engine.py): `day_30/engine.py`
- [Prediction History](https://github.com/inoy-252/python_practice/blob/main/day_30/database.py): `day_30/database.py`
- [Biomarker Screener](https://github.com/inoy-252/python_practice/blob/main/projects/health_evaluator/app.py): `projects/health_evaluator/app.py`
- [Loan Underwriting](https://github.com/inoy-252/python_practice/blob/main/projects/loan_predictor/app.py): `projects/loan_predictor/app.py`

### Knowledge Retrieval

- [Librarian RAG v1](https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v1.py): `projects/smart_librarian/rag_v1.py`
- [Librarian RAG v2](https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v2.py): `projects/smart_librarian/rag_v2.py`
- [Librarian RAG v3](https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v3.py): `projects/smart_librarian/rag_v3.py`
- [Librarian RAG v4](https://github.com/inoy-252/python_practice/blob/main/projects/smart_librarian/rag_v4.py): `projects/smart_librarian/rag_v4.py`
- [Search Orchestrator](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/pipeline.py): `projects/hybrid_search_rag/pipeline.py`
- [Query Intelligence](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/query_intelligence.py): `projects/hybrid_search_rag/query_intelligence.py`
- [BM25 Search](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/bm25.py): `projects/hybrid_search_rag/bm25.py`
- [Dense Search](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/dense_retriever.py): `projects/hybrid_search_rag/dense_retriever.py`
- [Document Corpus](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/data.py): `projects/hybrid_search_rag/data.py`
- [Rank Fusion](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/fusion.py): `projects/hybrid_search_rag/fusion.py`
- [Result Reranker](https://github.com/inoy-252/python_practice/blob/main/projects/hybrid_search_rag/reranker.py): `projects/hybrid_search_rag/reranker.py`

### Market Analytics

- [Market Pipeline](https://github.com/inoy-252/python_practice/blob/main/projects/market_pipeline/app.py): `projects/market_pipeline/app.py`

### Other components

- **Learner**
- **Health App User**
- **Engineer**
- **Pipeline Operator**
- **Product Data API**

## Connections

- Learner → Python Foundations: practices (evidence: `README.md`)
- Learner → Control And Functions: practices (evidence: `README.md`)
- Learner → Data And Files: practices (evidence: `README.md`)
- Learner → Web And Data Tools: practices (evidence: `README.md`)
- Learner → AI ML Concepts: practices (evidence: `README.md`)
- Health App User → Health Web App: submits measures (evidence: `day_30/app.py`)
- Health Web App → Risk Scoring: scores risk (evidence: `day_30/app.py`)
- Health Web App → Prediction History: stores prediction (evidence: `day_30/app.py`)
- Health Web App → Prediction History: reads history (evidence: `day_30/app.py`)
- Health App User → Biomarker Screener: checks biomarkers (evidence: `README.md`)
- Health App User → Loan Underwriting: assesses eligibility (evidence: `README.md`)
- Learner → Librarian RAG v1: tries retrieval (evidence: `README.md`)
- Learner → Librarian RAG v2: queries knowledge (evidence: `README.md`)
- Learner → Librarian RAG v3: queries knowledge (evidence: `README.md`)
- Learner → Librarian RAG v4: asks questions (evidence: `projects/smart_librarian/rag_v4.py`)
- Engineer → Search Orchestrator: enters query (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Search Orchestrator → Query Intelligence: rewrites query (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Search Orchestrator → BM25 Search: searches keywords (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Search Orchestrator → Dense Search: searches vectors (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Search Orchestrator → Rank Fusion: fuses rankings (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Search Orchestrator → Result Reranker: reranks candidates (evidence: `projects/hybrid_search_rag/pipeline.py`)
- Dense Search → Document Corpus: embeds documents (evidence: `projects/hybrid_search_rag/dense_retriever.py`)
- Pipeline Operator → Market Pipeline: runs pipeline (evidence: `projects/market_pipeline/app.py`)
- Market Pipeline → Product Data API: fetches products (evidence: `projects/market_pipeline/app.py`)
