Spaces:
Sleeping
Sleeping
github-actions[bot] commited on
Commit ·
1a8db8f
1
Parent(s): dc8caa0
🚀 Auto-deploy backend from GitHub (db11618)
Browse files- rag/firebase_storage_loader.py +11 -32
rag/firebase_storage_loader.py
CHANGED
|
@@ -112,31 +112,16 @@ def list_curriculum_blobs(prefix: str = "curriculum/") -> List[Dict[str, str]]:
|
|
| 112 |
return result
|
| 113 |
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
PDF_METADATA: Dict[str, dict] = {
|
| 116 |
-
|
| 117 |
-
"subject": "General Mathematics",
|
| 118 |
-
"subjectId": "gen-math",
|
| 119 |
-
"type": "curriculum_guide",
|
| 120 |
-
"content_domain": "general",
|
| 121 |
-
"quarter": 1,
|
| 122 |
-
"storage_path": "curriculum/general_math/GENERAL-MATHEMATICS-1.pdf",
|
| 123 |
-
},
|
| 124 |
-
"curriculum/finite_math/Finite-Mathematics-1-1.pdf": {
|
| 125 |
-
"subject": "Finite Mathematics 1",
|
| 126 |
-
"subjectId": "finite-math-1",
|
| 127 |
-
"type": "curriculum_guide",
|
| 128 |
-
"content_domain": "finite_math",
|
| 129 |
-
"quarter": 1,
|
| 130 |
-
"storage_path": "curriculum/finite_math/Finite-Mathematics-1-1.pdf",
|
| 131 |
-
},
|
| 132 |
-
"curriculum/finite_math/Finite-Mathematics-2-1.pdf": {
|
| 133 |
-
"subject": "Finite Mathematics 2",
|
| 134 |
-
"subjectId": "finite-math-2",
|
| 135 |
-
"type": "curriculum_guide",
|
| 136 |
-
"content_domain": "finite_math",
|
| 137 |
-
"quarter": 1,
|
| 138 |
-
"storage_path": "curriculum/finite_math/Finite-Mathematics-2-1.pdf",
|
| 139 |
-
},
|
| 140 |
"curriculum/gen_math_sdo/SDO_Navotas_Gen.Math_SHS_1stSem.FV.pdf": {
|
| 141 |
"subject": "General Mathematics",
|
| 142 |
"subjectId": "gen-math",
|
|
@@ -145,6 +130,7 @@ PDF_METADATA: Dict[str, dict] = {
|
|
| 145 |
"quarter": 1,
|
| 146 |
"storage_path": "curriculum/gen_math_sdo/SDO_Navotas_Gen.Math_SHS_1stSem.FV.pdf",
|
| 147 |
},
|
|
|
|
| 148 |
"curriculum/business_math/SDO_Navotas_Bus.Math_SHS_1stSem.FV.pdf": {
|
| 149 |
"subject": "Business Mathematics",
|
| 150 |
"subjectId": "business-math",
|
|
@@ -153,14 +139,7 @@ PDF_METADATA: Dict[str, dict] = {
|
|
| 153 |
"quarter": 1,
|
| 154 |
"storage_path": "curriculum/business_math/SDO_Navotas_Bus.Math_SHS_1stSem.FV.pdf",
|
| 155 |
},
|
| 156 |
-
|
| 157 |
-
"subject": "Organization and Management",
|
| 158 |
-
"subjectId": "org-mgmt",
|
| 159 |
-
"type": "sdo_module",
|
| 160 |
-
"content_domain": "org_management",
|
| 161 |
-
"quarter": 1,
|
| 162 |
-
"storage_path": "curriculum/org_mgmt/SDO_Navotas_SHS_ABM_OrgAndMngt_FirstSem_FV.pdf",
|
| 163 |
-
},
|
| 164 |
"curriculum/stat_prob/SDO_Navotas_STAT_PROB_SHS_1stSem.FV.pdf": {
|
| 165 |
"subject": "Statistics and Probability",
|
| 166 |
"subjectId": "stats-prob",
|
|
|
|
| 112 |
return result
|
| 113 |
|
| 114 |
|
| 115 |
+
# NOTE: Curriculum guide PDFs (shaping papers) are stored in Firebase Storage
|
| 116 |
+
# for system reference but are NOT included in RAG ingestion because they
|
| 117 |
+
# contain only learning objectives and course descriptions — insufficient
|
| 118 |
+
# content for lesson generation (typically <10 chunks each).
|
| 119 |
+
#
|
| 120 |
+
# Only SDO teaching modules (full lesson content with examples and problems)
|
| 121 |
+
# are included in the RAG pipeline.
|
| 122 |
+
|
| 123 |
PDF_METADATA: Dict[str, dict] = {
|
| 124 |
+
# General Mathematics — SDO Navotas teaching module (100 pages, ~125k chars)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
"curriculum/gen_math_sdo/SDO_Navotas_Gen.Math_SHS_1stSem.FV.pdf": {
|
| 126 |
"subject": "General Mathematics",
|
| 127 |
"subjectId": "gen-math",
|
|
|
|
| 130 |
"quarter": 1,
|
| 131 |
"storage_path": "curriculum/gen_math_sdo/SDO_Navotas_Gen.Math_SHS_1stSem.FV.pdf",
|
| 132 |
},
|
| 133 |
+
# Business Mathematics — SDO Navotas teaching module (100 pages, ~145k chars)
|
| 134 |
"curriculum/business_math/SDO_Navotas_Bus.Math_SHS_1stSem.FV.pdf": {
|
| 135 |
"subject": "Business Mathematics",
|
| 136 |
"subjectId": "business-math",
|
|
|
|
| 139 |
"quarter": 1,
|
| 140 |
"storage_path": "curriculum/business_math/SDO_Navotas_Bus.Math_SHS_1stSem.FV.pdf",
|
| 141 |
},
|
| 142 |
+
# Statistics and Probability — SDO Navotas teaching module (100 pages, ~156k chars)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
"curriculum/stat_prob/SDO_Navotas_STAT_PROB_SHS_1stSem.FV.pdf": {
|
| 144 |
"subject": "Statistics and Probability",
|
| 145 |
"subjectId": "stats-prob",
|