Models-Phi-8B/docs/diagrams/01-system-context.drawio

53 lines
5.0 KiB
Plaintext

<mxfile host="app.diagrams.net" modified="2026-10-15T15:00:00.000Z" agent="Copilot" version="24.7.17">
<diagram id="system-context" name="C4 Level 1 - System Context">
<mxGraphModel dx="1422" dy="794" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="900" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="Medical PHI Model - C4 Level 1: System Context" style="text;html=1;align=center;verticalAlign=middle;fontSize=24;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="350" y="20" width="900" height="40" as="geometry"/>
</mxCell>
<mxCell id="operator" value="&lt;b&gt;ML / Data Operator&lt;/b&gt;&lt;br&gt;Curates inputs, runs generation and training, reviews metrics" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=14" vertex="1" parent="1">
<mxGeometry x="70" y="310" width="240" height="110" as="geometry"/>
</mxCell>
<mxCell id="system" value="&lt;b&gt;Medical PHI Model System&lt;/b&gt;&lt;br&gt;Generates contextual examples and fine-tunes an 8B model to classify medical PHI and emit category-based JSON" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1168bd;strokeColor=#0b4884;fontColor=#ffffff;fontSize=16" vertex="1" parent="1">
<mxGeometry x="560" y="280" width="420" height="170" as="geometry"/>
</mxCell>
<mxCell id="sources" value="&lt;b&gt;NIH / WHO / CDC Sources&lt;/b&gt;&lt;br&gt;Owner-reported origins of medical terminology catalogs" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=14" vertex="1" parent="1">
<mxGeometry x="580" y="90" width="380" height="100" as="geometry"/>
</mxCell>
<mxCell id="presidio" value="&lt;b&gt;Downstream Presidio Integration&lt;/b&gt;&lt;br&gt;Consumes compatible MEDICAL_* category/entity types; implementation is outside this repository" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=14" vertex="1" parent="1">
<mxGeometry x="1180" y="300" width="300" height="130" as="geometry"/>
</mxCell>
<mxCell id="subject" value="&lt;b&gt;Application / Reviewer&lt;/b&gt;&lt;br&gt;Submits text and consumes strict JSON classification results" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=14" vertex="1" parent="1">
<mxGeometry x="1180" y="570" width="300" height="110" as="geometry"/>
</mxCell>
<mxCell id="modelhost" value="&lt;b&gt;Model Runtime&lt;/b&gt;&lt;br&gt;Hosts the merged Hugging Face model or a separately converted GGUF artifact" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=14" vertex="1" parent="1">
<mxGeometry x="560" y="590" width="420" height="110" as="geometry"/>
</mxCell>
<mxCell id="e1" value="Operates and reviews" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block" edge="1" parent="1" source="operator" target="system">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="e2" value="Curated terminology (provenance manifest needed)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block" edge="1" parent="1" source="sources" target="system">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="e3" value="Produces model artifacts" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block" edge="1" parent="1" source="system" target="modelhost">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="e4" value="Category contract / model integration" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;dashed=1" edge="1" parent="1" source="system" target="presidio">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="e5" value="Inference requests" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block" edge="1" parent="1" source="subject" target="modelhost">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="e6" value="Strict JSON decisions" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block" edge="1" parent="1" source="modelhost" target="subject">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="note" value="Dashed relationship is intended compatibility; Presidio code is not tracked here." style="shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fillColor=#fff2cc;strokeColor=#d6b656" vertex="1" parent="1">
<mxGeometry x="1110" y="100" width="330" height="90" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>