Spaces:
Sleeping
Sleeping
Mercy Babayemi
Claude Sonnet 4.6
AfriPed — clean deploy (ENGREG teacher corpus as TXT, no binary files)
5070743 |
Download enumverse_architecture.svg from mercybabayemi/enumverse-ai: direct link, hf CLI and curl.
- Browser
- Download file 21.1 kB
-
https://huggingface.co/spaces/mercybabayemi/enumverse-ai/resolve/main/enumverse_architecture.svg
- Command line
-
hf download hf://spaces/mercybabayemi/enumverse-ai/enumverse_architecture.svg
-
curl -L -o enumverse_architecture.svg https://huggingface.co/spaces/mercybabayemi/enumverse-ai/resolve/main/enumverse_architecture.svg
21.1 kB
| <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="900" viewBox="0 0 1200 900" font-family="Segoe UI, Arial, sans-serif"> | |
| <defs> | |
| <linearGradient id="headerGrad" x1="0%" y1="0%" x2="100%" y2="0%"> | |
| <stop offset="0%" style="stop-color:#1a6b3a;stop-opacity:1"/> | |
| <stop offset="100%" style="stop-color:#2d9e57;stop-opacity:1"/> | |
| </linearGradient> | |
| <linearGradient id="apiGrad" x1="0%" y1="0%" x2="100%" y2="0%"> | |
| <stop offset="0%" style="stop-color:#1565C0;stop-opacity:1"/> | |
| <stop offset="100%" style="stop-color:#1976D2;stop-opacity:1"/> | |
| </linearGradient> | |
| <linearGradient id="graphGrad" x1="0%" y1="0%" x2="100%" y2="0%"> | |
| <stop offset="0%" style="stop-color:#6A1B9A;stop-opacity:1"/> | |
| <stop offset="100%" style="stop-color:#8E24AA;stop-opacity:1"/> | |
| </linearGradient> | |
| <linearGradient id="storageGrad" x1="0%" y1="0%" x2="100%" y2="0%"> | |
| <stop offset="0%" style="stop-color:#37474F;stop-opacity:1"/> | |
| <stop offset="100%" style="stop-color:#546E7A;stop-opacity:1"/> | |
| </linearGradient> | |
| <filter id="shadow" x="-5%" y="-5%" width="110%" height="115%"> | |
| <feDropShadow dx="2" dy="3" stdDeviation="3" flood-opacity="0.18"/> | |
| </filter> | |
| <marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"> | |
| <path d="M0,0 L0,6 L8,3 z" fill="#555"/> | |
| </marker> | |
| <marker id="arrowBlue" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"> | |
| <path d="M0,0 L0,6 L8,3 z" fill="#1976D2"/> | |
| </marker> | |
| <marker id="arrowPurple" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"> | |
| <path d="M0,0 L0,6 L8,3 z" fill="#8E24AA"/> | |
| </marker> | |
| <marker id="arrowGreen" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"> | |
| <path d="M0,0 L0,6 L8,3 z" fill="#2d9e57"/> | |
| </marker> | |
| </defs> | |
| <!-- Background --> | |
| <rect width="1200" height="900" fill="#F8F9FA" rx="0"/> | |
| <!-- ═══ TITLE BAR ═══ --> | |
| <rect x="0" y="0" width="1200" height="56" fill="url(#headerGrad)" rx="0"/> | |
| <text x="600" y="21" text-anchor="middle" fill="white" font-size="11" font-weight="400" opacity="0.85">📚 AI-Powered Knowledge & Skills Content for West African Teachers, Trainers & Communities</text> | |
| <text x="600" y="42" text-anchor="middle" fill="white" font-size="18" font-weight="700" letter-spacing="1">AfriPed — System Architecture</text> | |
| <!-- ═══ LAYER 1: CLIENT LAYER ═══ --> | |
| <rect x="20" y="72" width="1160" height="88" fill="#E8F5E9" rx="8" stroke="#A5D6A7" stroke-width="1.5" filter="url(#shadow)"/> | |
| <text x="36" y="90" fill="#1a6b3a" font-size="10" font-weight="700" letter-spacing="1">CLIENT LAYER</text> | |
| <!-- Backend Engineers box --> | |
| <rect x="60" y="98" width="240" height="48" fill="#ffffff" rx="6" stroke="#81C784" stroke-width="1.5"/> | |
| <text x="180" y="116" text-anchor="middle" fill="#1a6b3a" font-size="12" font-weight="700">🖥️ Frontend Engineers</text> | |
| <text x="180" y="132" text-anchor="middle" fill="#555" font-size="10">curl / SDK → REST API</text> | |
| <!-- Educators / Stakeholders --> | |
| <rect x="340" y="98" width="240" height="48" fill="#ffffff" rx="6" stroke="#81C784" stroke-width="1.5"/> | |
| <text x="460" y="116" text-anchor="middle" fill="#1a6b3a" font-size="12" font-weight="700">📋 Teachers, Trainers & Communities</text> | |
| <text x="460" y="132" text-anchor="middle" fill="#555" font-size="10">Gradio UI · API Testing Dashboard</text> | |
| <!-- HF Spaces badge --> | |
| <rect x="620" y="98" width="510" height="48" fill="#FFF3E0" rx="6" stroke="#FFB74D" stroke-width="1.5"/> | |
| <text x="875" y="112" text-anchor="middle" fill="#E65100" font-size="11" font-weight="700">🤗 Gradio 4.44.1 · HuggingFace Spaces (t4-medium · 16 GB VRAM)</text> | |
| <text x="875" y="126" text-anchor="middle" fill="#555" font-size="10">5 tabs: Content · Curriculum · Assessment · Diagnostics · System Status</text> | |
| <text x="875" y="140" text-anchor="middle" fill="#555" font-size="9">Program Type: Academic · Vocational · Community · Life Skills · Agricultural · Teacher Training · Youth Enterprise</text> | |
| <!-- ═══ LAYER 2: API GATEWAY ═══ --> | |
| <rect x="20" y="176" width="1160" height="80" fill="#E3F2FD" rx="8" stroke="#90CAF9" stroke-width="1.5" filter="url(#shadow)"/> | |
| <text x="36" y="194" fill="#1565C0" font-size="10" font-weight="700" letter-spacing="1">FASTAPI REST LAYER · /api/v1</text> | |
| <!-- 6 routes --> | |
| <rect x="50" y="200" width="155" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="127" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">GET /health</text> | |
| <text x="127" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Liveness check</text> | |
| <rect x="218" y="200" width="155" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="295" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">GET /skills</text> | |
| <text x="295" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Skill library browser</text> | |
| <rect x="386" y="200" width="165" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="468" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">POST /curriculum/generate</text> | |
| <text x="468" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Pillar 1 · Schemes of Work</text> | |
| <rect x="563" y="200" width="160" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="643" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">POST /content/generate</text> | |
| <text x="643" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Pillar 2 · Lessons / Stories</text> | |
| <rect x="735" y="200" width="175" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="822" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">POST /assessment/generate</text> | |
| <text x="822" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Pillar 3 · WAEC-style exams</text> | |
| <rect x="922" y="200" width="238" height="40" fill="url(#apiGrad)" rx="5"/> | |
| <text x="1041" y="215" text-anchor="middle" fill="white" font-size="10" font-weight="700">POST /insights/analyze</text> | |
| <text x="1041" y="230" text-anchor="middle" fill="#BBDEFB" font-size="9">Pillar 4 · Diagnostics & Quality</text> | |
| <!-- ═══ LAYER 3: LANGGRAPH ORCHESTRATION ═══ --> | |
| <rect x="20" y="272" width="1160" height="244" fill="#F3E5F5" rx="8" stroke="#CE93D8" stroke-width="1.5" filter="url(#shadow)"/> | |
| <text x="36" y="290" fill="#6A1B9A" font-size="10" font-weight="700" letter-spacing="1">LANGGRAPH ORCHESTRATION · StateGraph (LangChain + LangGraph)</text> | |
| <!-- Route node --> | |
| <rect x="50" y="298" width="130" height="48" fill="url(#graphGrad)" rx="6"/> | |
| <text x="115" y="316" text-anchor="middle" fill="white" font-size="11" font-weight="700">route_by_pillar</text> | |
| <text x="115" y="333" text-anchor="middle" fill="#E1BEE7" font-size="9">Entry node</text> | |
| <!-- Arrow from route to pillars --> | |
| <line x1="180" y1="322" x2="218" y2="322" stroke="#8E24AA" stroke-width="1.5" marker-end="url(#arrowPurple)"/> | |
| <!-- 4 pillar nodes --> | |
| <rect x="220" y="298" width="125" height="48" fill="#7B1FA2" rx="6"/> | |
| <text x="282" y="316" text-anchor="middle" fill="white" font-size="10" font-weight="700">curriculum_node</text> | |
| <text x="282" y="333" text-anchor="middle" fill="#E1BEE7" font-size="9">Pillar 1</text> | |
| <rect x="360" y="298" width="125" height="48" fill="#7B1FA2" rx="6"/> | |
| <text x="422" y="316" text-anchor="middle" fill="white" font-size="10" font-weight="700">generate_node</text> | |
| <text x="422" y="333" text-anchor="middle" fill="#E1BEE7" font-size="9">Pillar 2</text> | |
| <rect x="500" y="298" width="125" height="48" fill="#7B1FA2" rx="6"/> | |
| <text x="562" y="316" text-anchor="middle" fill="white" font-size="10" font-weight="700">assessment_node</text> | |
| <text x="562" y="333" text-anchor="middle" fill="#E1BEE7" font-size="9">Pillar 3</text> | |
| <rect x="640" y="298" width="125" height="48" fill="#7B1FA2" rx="6"/> | |
| <text x="702" y="316" text-anchor="middle" fill="white" font-size="10" font-weight="700">insights_node</text> | |
| <text x="702" y="333" text-anchor="middle" fill="#E1BEE7" font-size="9">Pillar 4 → END</text> | |
| <!-- retrieve_node (feeds pillars 1-3) --> | |
| <rect x="220" y="364" width="405" height="40" fill="#4A148C" rx="6"/> | |
| <text x="422" y="382" text-anchor="middle" fill="white" font-size="10" font-weight="700">retrieve_node</text> | |
| <text x="422" y="396" text-anchor="middle" fill="#CE93D8" font-size="9">RAG retrieval with metadata filter · feeds Pillars 1-3</text> | |
| <!-- skill_tag_node --> | |
| <rect x="50" y="364" width="155" height="40" fill="#6A1B9A" rx="6"/> | |
| <text x="127" y="382" text-anchor="middle" fill="white" font-size="10" font-weight="700">skill_tag_node</text> | |
| <text x="127" y="396" text-anchor="middle" fill="#CE93D8" font-size="9">Keyword match → SkillTag[]</text> | |
| <!-- Validation flow --> | |
| <text x="36" y="428" fill="#6A1B9A" font-size="9" font-weight="700">VALIDATION PIPELINE</text> | |
| <rect x="50" y="436" width="140" height="60" fill="#4A148C" rx="6"/> | |
| <text x="120" y="455" text-anchor="middle" fill="white" font-size="10" font-weight="700">rules_node</text> | |
| <text x="120" y="470" text-anchor="middle" fill="#CE93D8" font-size="9">8 rules · ~50ms</text> | |
| <text x="120" y="484" text-anchor="middle" fill="#CE93D8" font-size="9">No LLM</text> | |
| <!-- PASS arrow --> | |
| <line x1="190" y1="466" x2="225" y2="466" stroke="#2d9e57" stroke-width="1.5" marker-end="url(#arrowGreen)"/> | |
| <text x="208" y="461" text-anchor="middle" fill="#2d9e57" font-size="9" font-weight="700">PASS</text> | |
| <!-- END --> | |
| <rect x="227" y="452" width="60" height="28" fill="#2d9e57" rx="5"/> | |
| <text x="257" y="470" text-anchor="middle" fill="white" font-size="10" font-weight="700">END</text> | |
| <!-- FAIL arrow to judge --> | |
| <line x1="190" y1="480" x2="310" y2="480" stroke="#E53935" stroke-width="1.5" marker-end="url(#arrow)"/> | |
| <text x="250" y="476" text-anchor="middle" fill="#E53935" font-size="9" font-weight="700">FAIL</text> | |
| <rect x="312" y="436" width="155" height="60" fill="#4A148C" rx="6"/> | |
| <text x="389" y="455" text-anchor="middle" fill="white" font-size="10" font-weight="700">judge_node</text> | |
| <text x="389" y="470" text-anchor="middle" fill="#CE93D8" font-size="9">Mistral 7B · 5 dims</text> | |
| <text x="389" y="484" text-anchor="middle" fill="#CE93D8" font-size="9">score ≥ 3.5 → END</text> | |
| <!-- judge to revise --> | |
| <line x1="467" y1="466" x2="502" y2="466" stroke="#E53935" stroke-width="1.5" marker-end="url(#arrow)"/> | |
| <text x="485" y="461" text-anchor="middle" fill="#E53935" font-size="9" font-weight="700"><3.5</text> | |
| <rect x="504" y="436" width="155" height="60" fill="#4A148C" rx="6"/> | |
| <text x="581" y="455" text-anchor="middle" fill="white" font-size="10" font-weight="700">revise_node</text> | |
| <text x="581" y="470" text-anchor="middle" fill="#CE93D8" font-size="9">Guided revision</text> | |
| <text x="581" y="484" text-anchor="middle" fill="#CE93D8" font-size="9">max 2 retries → rules_node</text> | |
| <!-- AfriPedState label --> | |
| <rect x="790" y="436" width="370" height="60" fill="#ffffff" rx="6" stroke="#CE93D8" stroke-width="1.2"/> | |
| <text x="975" y="452" text-anchor="middle" fill="#6A1B9A" font-size="10" font-weight="700">AfriPedState (TypedDict)</text> | |
| <text x="800" y="467" fill="#444" font-size="9">pillar · request · rag_context · rag_metadata · generated_content</text> | |
| <text x="800" y="481" fill="#444" font-size="9">structured_output · skill_tags · validation_report · revision_instruction</text> | |
| <text x="800" y="495" fill="#444" font-size="9">revision_count (max 2) · final_content · error</text> | |
| <!-- ═══ LAYER 4: CORE SERVICES ═══ --> | |
| <rect x="20" y="532" width="1160" height="168" fill="#E0F2F1" rx="8" stroke="#80CBC4" stroke-width="1.5" filter="url(#shadow)"/> | |
| <text x="36" y="550" fill="#00695C" font-size="10" font-weight="700" letter-spacing="1">CORE SERVICES</text> | |
| <!-- LLM Service --> | |
| <rect x="40" y="558" width="255" height="126" fill="#ffffff" rx="7" stroke="#80CBC4" stroke-width="1.2"/> | |
| <text x="167" y="576" text-anchor="middle" fill="#00695C" font-size="11" font-weight="700">🧠 LLM Service (llm.py)</text> | |
| <line x1="50" y1="582" x2="285" y2="582" stroke="#80CBC4" stroke-width="0.8"/> | |
| <text x="55" y="597" fill="#333" font-size="10" font-weight="600">Primary: LLaMA 3.2 3B Instruct</text> | |
| <text x="55" y="612" fill="#666" font-size="9">meta-llama/Llama-3.2-3B-Instruct</text> | |
| <text x="55" y="624" fill="#666" font-size="9">4-bit BnB · bfloat16 · device_map=auto</text> | |
| <text x="55" y="641" fill="#333" font-size="10" font-weight="600">Judge: Mistral 7B Instruct v0.3</text> | |
| <text x="55" y="656" fill="#666" font-size="9">mistralai/Mistral-7B-Instruct-v0.3</text> | |
| <text x="55" y="668" fill="#666" font-size="9">Triggered only on rule failure</text> | |
| <!-- RAG Pipeline --> | |
| <rect x="310" y="558" width="280" height="126" fill="#ffffff" rx="7" stroke="#80CBC4" stroke-width="1.2"/> | |
| <text x="450" y="576" text-anchor="middle" fill="#00695C" font-size="11" font-weight="700">🔍 RAG Pipeline</text> | |
| <line x1="320" y1="582" x2="580" y2="582" stroke="#80CBC4" stroke-width="0.8"/> | |
| <text x="325" y="597" fill="#333" font-size="10" font-weight="600">Embeddings: multilingual-e5-large</text> | |
| <text x="325" y="612" fill="#666" font-size="9">intfloat/multilingual-e5-large · 1024-dim</text> | |
| <text x="325" y="624" fill="#666" font-size="9">Supports Hausa / Yoruba / Igbo</text> | |
| <text x="325" y="641" fill="#333" font-size="10" font-weight="600">Vector Store: ChromaDB (SQLite)</text> | |
| <text x="325" y="656" fill="#666" font-size="9">Pre-filter: board + subject + level</text> | |
| <text x="325" y="668" fill="#666" font-size="9">→ Qdrant at >100K docs</text> | |
| <!-- Skill Library --> | |
| <rect x="605" y="558" width="255" height="126" fill="#ffffff" rx="7" stroke="#80CBC4" stroke-width="1.2"/> | |
| <text x="732" y="576" text-anchor="middle" fill="#00695C" font-size="11" font-weight="700">🏷️ Enum Skill Library</text> | |
| <line x1="615" y1="582" x2="850" y2="582" stroke="#80CBC4" stroke-width="0.8"/> | |
| <text x="620" y="597" fill="#333" font-size="10" font-weight="600">4 Domains · 119 Skills</text> | |
| <text x="620" y="612" fill="#666" font-size="9">Technical · Behavioral · Cognitive · Language</text> | |
| <text x="620" y="624" fill="#666" font-size="9">Hierarchical parent→child structure</text> | |
| <text x="620" y="641" fill="#333" font-size="10" font-weight="600">match_from_text() auto-tagging</text> | |
| <text x="620" y="656" fill="#666" font-size="9">Keyword aliases + regex matching</text> | |
| <text x="620" y="668" fill="#666" font-size="9">Per-question + per-response SkillTag[]</text> | |
| <!-- Prompt Engine --> | |
| <rect x="875" y="558" width="285" height="126" fill="#ffffff" rx="7" stroke="#80CBC4" stroke-width="1.2"/> | |
| <text x="1017" y="576" text-anchor="middle" fill="#00695C" font-size="11" font-weight="700">📝 Prompt Engine (prompts.py)</text> | |
| <line x1="885" y1="582" x2="1150" y2="582" stroke="#80CBC4" stroke-width="0.8"/> | |
| <text x="890" y="597" fill="#333" font-size="10" font-weight="600">build_curriculum_prompt()</text> | |
| <text x="890" y="612" fill="#333" font-size="10" font-weight="600">build_content_prompt()</text> | |
| <text x="890" y="627" fill="#333" font-size="10" font-weight="600">build_assessment_prompt()</text> | |
| <text x="890" y="642" fill="#333" font-size="10" font-weight="600">build_judge_prompt()</text> | |
| <text x="890" y="657" fill="#666" font-size="9">Language map: en/yo/ha/ig/pcm/en-yo…</text> | |
| <text x="890" y="671" fill="#666" font-size="9">Cultural anchors always injected</text> | |
| <!-- ═══ LAYER 5: STORAGE ═══ --> | |
| <rect x="20" y="716" width="1160" height="96" fill="#ECEFF1" rx="8" stroke="#B0BEC5" stroke-width="1.5" filter="url(#shadow)"/> | |
| <text x="36" y="734" fill="#37474F" font-size="10" font-weight="700" letter-spacing="1">STORAGE & DATA SOURCES</text> | |
| <!-- ChromaDB --> | |
| <rect x="40" y="742" width="200" height="56" fill="url(#storageGrad)" rx="6"/> | |
| <text x="140" y="760" text-anchor="middle" fill="white" font-size="11" font-weight="700">🗄️ ChromaDB</text> | |
| <text x="140" y="776" text-anchor="middle" fill="#CFD8DC" font-size="9">data/vectorstore/ (SQLite)</text> | |
| <text x="140" y="790" text-anchor="middle" fill="#CFD8DC" font-size="9">Persistent · idempotent ingestion</text> | |
| <!-- Skill Library JSON --> | |
| <rect x="256" y="742" width="200" height="56" fill="url(#storageGrad)" rx="6"/> | |
| <text x="356" y="760" text-anchor="middle" fill="white" font-size="11" font-weight="700">📄 skill_library.json</text> | |
| <text x="356" y="776" text-anchor="middle" fill="#CFD8DC" font-size="9">data/skills/ · in-memory on load</text> | |
| <text x="356" y="790" text-anchor="middle" fill="#CFD8DC" font-size="9">Singleton via get_skill_library()</text> | |
| <!-- Curriculum docs --> | |
| <rect x="472" y="742" width="200" height="56" fill="url(#storageGrad)" rx="6"/> | |
| <text x="572" y="760" text-anchor="middle" fill="white" font-size="11" font-weight="700">📚 Curriculum Docs</text> | |
| <text x="572" y="776" text-anchor="middle" fill="#CFD8DC" font-size="9">data/raw/ · PDF / DOCX</text> | |
| <text x="572" y="790" text-anchor="middle" fill="#CFD8DC" font-size="9">NERDC · WAEC · OER Africa</text> | |
| <!-- HF Datasets --> | |
| <rect x="688" y="742" width="200" height="56" fill="url(#storageGrad)" rx="6"/> | |
| <text x="788" y="760" text-anchor="middle" fill="white" font-size="11" font-weight="700">🤗 HF Datasets</text> | |
| <text x="788" y="776" text-anchor="middle" fill="#CFD8DC" font-size="9">masakhane/mafand-mt</text> | |
| <text x="788" y="790" text-anchor="middle" fill="#CFD8DC" font-size="9">castorini/mr-tydi · opus-100</text> | |
| <!-- Synthetic Bootstrap --> | |
| <rect x="904" y="742" width="256" height="56" fill="url(#storageGrad)" rx="6"/> | |
| <text x="1032" y="760" text-anchor="middle" fill="white" font-size="11" font-weight="700">🤖 Synthetic Bootstrap</text> | |
| <text x="1032" y="776" text-anchor="middle" fill="#CFD8DC" font-size="9">LLaMA-generated NERDC outlines</text> | |
| <text x="1032" y="790" text-anchor="middle" fill="#CFD8DC" font-size="9">Tagged synthetic:true in metadata</text> | |
| <!-- ═══ CONNECTING ARROWS between layers ═══ --> | |
| <!-- Client → API --> | |
| <line x1="180" y1="146" x2="180" y2="200" stroke="#1565C0" stroke-width="1.5" stroke-dasharray="5,3" marker-end="url(#arrowBlue)"/> | |
| <line x1="460" y1="146" x2="460" y2="200" stroke="#1565C0" stroke-width="1.5" stroke-dasharray="5,3" marker-end="url(#arrowBlue)"/> | |
| <!-- API → LangGraph --> | |
| <line x1="600" y1="256" x2="600" y2="272" stroke="#8E24AA" stroke-width="2" marker-end="url(#arrowPurple)"/> | |
| <!-- LangGraph → Core Services --> | |
| <line x1="167" y1="516" x2="167" y2="558" stroke="#00695C" stroke-width="1.5" marker-end="url(#arrowGreen)"/> | |
| <line x1="450" y1="516" x2="450" y2="558" stroke="#00695C" stroke-width="1.5" marker-end="url(#arrowGreen)"/> | |
| <line x1="702" y1="516" x2="732" y2="558" stroke="#00695C" stroke-width="1.5" marker-end="url(#arrowGreen)"/> | |
| <!-- Core Services → Storage --> | |
| <line x1="167" y1="684" x2="167" y2="742" stroke="#546E7A" stroke-width="1.5" marker-end="url(#arrow)"/> | |
| <line x1="450" y1="684" x2="356" y2="742" stroke="#546E7A" stroke-width="1.5" marker-end="url(#arrow)"/> | |
| <line x1="450" y1="684" x2="572" y2="742" stroke="#546E7A" stroke-width="1.5" marker-end="url(#arrow)"/> | |
| <!-- ═══ LEGEND ═══ --> | |
| <rect x="20" y="818" width="1160" height="72" fill="#F1F8E9" rx="6" stroke="#DCEDC8" stroke-width="1.2"/> | |
| <text x="36" y="836" fill="#33691E" font-size="10" font-weight="700" letter-spacing="0.5">TECH STACK & DESIGN NOTES</text> | |
| <text x="36" y="851" fill="#444" font-size="9">FastAPI 0.115 · Pydantic v2 · LangGraph 0.2 · ChromaDB 0.5 · Gradio 4.44.1 · Python 3.11+</text> | |
| <text x="36" y="865" fill="#444" font-size="9">Program Type: Academic · Vocational · Community · Life Skills · Agricultural · Teacher Training · Youth Enterprise | Learner Level: School Classes · Cohort (Beginner/Intermediate/Advanced) · Youth Group · Community Group · Adult Literacy</text> | |
| <text x="36" y="879" fill="#444" font-size="9">Cultural anchors: Chukwuemeka · Adaeze · Aminu · Tunde · Kofi · Ama · Fatima · Balogun Market · Niger River · ₦ Naira / ₵ Cedis · NNPC · WAEC · UBEC</text> | |
| <text x="800" y="851" fill="#444" font-size="9">Chunking: Hierarchical (UNIT/TOPIC/WEEK headers) · 400-600 tokens · 80-token overlap · parent header prepended</text> | |
| <text x="800" y="865" fill="#444" font-size="9">Languages: English · Yoruba (tonal diacritics) · Igbo (Onwu) · Hausa · Nigerian Pidgin · Twi · Ewe · Mixed en-yo/ha/ig</text> | |
| <text x="800" y="879" fill="#444" font-size="9">Evaluation: ROUGE-L · BERTScore · Bloom Accuracy · Cultural Name Ratio · RAG Faithfulness · Skill Tag Precision</text> | |
| </svg> | |