Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ venv/
.pytest_cache/
*.xlsx
.vercel
.clean_venv/
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ fetch-data:

reset:
rm -rf data/*.parquet data/*.csv data/stats artifacts/*.pkl artifacts/*.parquet

stats:
PYTHONPATH=. $(PYTHON) scripts/collect_stats.py

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SkillGraph: India Job Market Mining Engine

**Live Web App**: https://skillgraph-two-delta.vercel.app
**Live Web App**: https://skillgraph-exp.vercel.app
**Production API**: https://skillgraph-api-notionatul.vercel.app

A student types the skills they have and the job they want. They get back: the role that actually fits them, whether they are ready for the one they asked for, and the skills that would move them fastest.
Expand Down
10 changes: 8 additions & 2 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,18 @@ def validate_request(skills: list[str], desired_role: str | None = None):
@api_router.get("/health", response_model=schemas.HealthResponse)
def health():
built_at = "2026-10-02T00:00:00Z"
model_version = artifacts.model_version
rules_version = artifacts.rules_version
metrics_path = ARTIFACTS_DIR / "metrics.json"
if metrics_path.exists():
try:
with open(metrics_path, "r") as f:
metrics = json.load(f)
built_at = metrics.get("built_at") or time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(metrics_path.stat().st_mtime))
if "model_version" in metrics:
model_version = metrics["model_version"]
if "rules_version" in metrics:
rules_version = metrics["rules_version"]
except OSError:
pass

Expand All @@ -112,8 +118,8 @@ def health():
n_postings=artifacts.n_postings,
n_skills=artifacts.n_skills,
built_at=built_at,
model=artifacts.model_version,
rules=artifacts.rules_version
model=model_version,
rules=rules_version,
)

@api_router.get("/roles", response_model=list[schemas.RoleResponse])
Expand Down
255 changes: 18 additions & 237 deletions artifacts/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@
"QA / Test",
"Support / IT Ops"
],
"calibration": {
"ece": 0.012,
"test_calibration": {
"pooled_ovr_ece": 0.012,
"top_label_ece": 0.0614,
"prob_true": [
0.015143992055610725,
0.15781922525107603,
Expand Down Expand Up @@ -255,7 +256,9 @@
"Close": 0.3,
"Not yet": 0.0
},
"data_release": "data-v3",
"data_release": "data-v4",
"model_version": "model-v4",
"rules_version": "rules-v2",
"seed": 42,
"model": "logreg",
"val": {
Expand All @@ -270,244 +273,22 @@
"top3_accuracy": 0.9306
}
},
"n_train_raw": 8941,
"n_train_aug": 26039,
"n_dropped_no_skills": 98,
"n_val": 1916,
"n_test": 1917,
"built_at": "2026-10-05T18:39:35Z",
"band_cutoffs": {
"prob_ready": 0.6,
"prob_close": 0.3,
"cov_ready": 0.2,
"cov_close": 0.1
},
"band_percentiles": {
"prob": {
"pooled": {
"p10": 0.0785,
"p25": 0.3849,
"p50": 0.889,
"p75": 0.9923,
"p90": 0.9995
},
"Backend": {
"p10": 0.079,
"p25": 0.4341,
"p50": 0.8722,
"p75": 0.9802,
"p90": 0.998
},
"Data / BI Analyst": {
"p10": 0.1663,
"p25": 0.6555,
"p50": 0.9241,
"p75": 0.9869,
"p90": 0.9974
},
"Data Science / ML": {
"p10": 0.0747,
"p25": 0.4245,
"p50": 0.9677,
"p75": 0.9997,
"p90": 1.0
},
"DevOps / Cloud": {
"p10": 0.0226,
"p25": 0.1376,
"p50": 0.5719,
"p75": 0.9278,
"p90": 0.9909
},
"ERP / Enterprise": {
"p10": 0.1801,
"p25": 0.5544,
"p50": 0.9437,
"p75": 0.9964,
"p90": 0.9997
},
"Frontend": {
"p10": 0.0815,
"p25": 0.3667,
"p50": 0.827,
"p75": 0.9813,
"p90": 0.9957
},
"Full Stack": {
"p10": 0.1356,
"p25": 0.3548,
"p50": 0.7629,
"p75": 0.9652,
"p90": 0.9953
},
"Mobile": {
"p10": 0.236,
"p25": 0.9102,
"p50": 0.9992,
"p75": 1.0,
"p90": 1.0
},
"QA / Test": {
"p10": 0.1284,
"p25": 0.6339,
"p50": 0.9816,
"p75": 0.9988,
"p90": 0.9999
},
"Support / IT Ops": {
"p10": 0.0539,
"p25": 0.2841,
"p50": 0.8599,
"p75": 0.9911,
"p90": 0.9989
}
},
"cov": {
"pooled": {
"p10": 0.0,
"p25": 0.05,
"p50": 0.1,
"p75": 0.2,
"p90": 0.25
},
"Backend": {
"p10": 0.05,
"p25": 0.1,
"p50": 0.15,
"p75": 0.25,
"p90": 0.3
},
"Data / BI Analyst": {
"p10": 0.05,
"p25": 0.05,
"p50": 0.1,
"p75": 0.2,
"p90": 0.25
},
"Data Science / ML": {
"p10": 0.0,
"p25": 0.05,
"p50": 0.1,
"p75": 0.2,
"p90": 0.25
},
"DevOps / Cloud": {
"p10": 0.0,
"p25": 0.05,
"p50": 0.1,
"p75": 0.15,
"p90": 0.25
},
"ERP / Enterprise": {
"p10": 0.0,
"p25": 0.05,
"p50": 0.1,
"p75": 0.1,
"p90": 0.15
},
"Frontend": {
"p10": 0.1,
"p25": 0.1,
"p50": 0.15,
"p75": 0.2,
"p90": 0.25
},
"Full Stack": {
"p10": 0.05,
"p25": 0.1,
"p50": 0.15,
"p75": 0.25,
"p90": 0.3
},
"Mobile": {
"p10": 0.05,
"p25": 0.05,
"p50": 0.15,
"p75": 0.2,
"p90": 0.23
},
"QA / Test": {
"p10": 0.01,
"p25": 0.05,
"p50": 0.1,
"p75": 0.15,
"p90": 0.2
},
"Support / IT Ops": {
"p10": 0.0,
"p25": 0.05,
"p50": 0.05,
"p75": 0.1125,
"p90": 0.15
}
}
},
"test_scores_both_models": {
"logreg": {
"accuracy": 0.7401,
"macro_f1": 0.7388
"accuracy": 0.7527,
"macro_f1": 0.7499,
"top3_accuracy": 0.9254
},
"lightgbm": {
"accuracy": 0.7615,
"macro_f1": 0.7647
}
},
"test_band_split": {
"Backend": {
"Ready": 82,
"Close": 51,
"Not yet": 58
},
"Data / BI Analyst": {
"Ready": 52,
"Close": 74,
"Not yet": 78
},
"Data Science / ML": {
"Ready": 54,
"Close": 70,
"Not yet": 56
},
"DevOps / Cloud": {
"Ready": 54,
"Close": 107,
"Not yet": 179
},
"ERP / Enterprise": {
"Ready": 12,
"Close": 116,
"Not yet": 95
},
"Frontend": {
"Ready": 37,
"Close": 39,
"Not yet": 41
},
"Full Stack": {
"Ready": 90,
"Close": 47,
"Not yet": 57
},
"Mobile": {
"Ready": 18,
"Close": 26,
"Not yet": 21
},
"QA / Test": {
"Ready": 55,
"Close": 115,
"Not yet": 73
},
"Support / IT Ops": {
"Ready": 8,
"Close": 61,
"Not yet": 90
"accuracy": 0.7632,
"macro_f1": 0.7648,
"top3_accuracy": 0.9306
}
},
"test_calibration": {
"pooled_ovr_ece": 0.013340901893966282,
"top_label_ece": 0.06612274392132718,
"note": "The model is consistently overconfident in the upper probability bins."
},
"data_release_tag": "data-v3"
"n_train_raw": 8941,
"n_train_aug": 26039,
"n_dropped_no_skills": 98,
"n_val": 1916,
"n_test": 1917,
"built_at": "2026-10-06T04:14:21Z"
}
4 changes: 2 additions & 2 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This document describes the Vercel production deployment setup for SkillGraph, r

## 1. Production URLs

- Web application: https://skillgraph-two-delta.vercel.app (alias: https://skillgraph-notionatul.vercel.app)
- Web application: https://skillgraph-exp.vercel.app (alias: https://skillgraph-notionatul.vercel.app)
- API service: https://skillgraph-api-notionatul.vercel.app (alias: https://skillgraph-api-three.vercel.app)

The web client sends all requests to its own origin under `/api/*`. `frontend/vercel.json` rewrites these paths to the API production domain.
Expand Down Expand Up @@ -49,7 +49,7 @@ Benchmarked `/api/analyze` using the payload:
Recorded from command:
```bash
for i in $(seq 1 20); do
curl -w "%{time_total}\n" -o /dev/null -s -X POST "https://skillgraph-two-delta.vercel.app/api/analyze" \
curl -w "%{time_total}\n" -o /dev/null -s -X POST "https://skillgraph-exp.vercel.app/api/analyze" \
-H "Content-Type: application/json" \
-d '{"skills":["python","sql","pandas"],"desired_role":"Data / BI Analyst"}'
done
Expand Down
Binary file added docs/figures/apriori_levels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/apriori_vs_fpgrowth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/band_split.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/calibration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/class_distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/confusion_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/full_vs_short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/funnel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/logreg_vs_lgbm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/per_class_f1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/token_coverage_curve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/figures/top_rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading