PHI-Model-8B/docs/diagrams/01-system-context.mmd

24 lines
1.4 KiB
Plaintext

flowchart LR
operator["ML / Data Operator<br/>Curates inputs, runs generation and training,<br/>and reviews metrics"]
sources["NIH / WHO / CDC Sources<br/>Owner-reported origins of<br/>medical terminology catalogs"]
system["Medical PHI Model System<br/>Generates contextual examples and fine-tunes<br/>an 8B model to classify medical PHI<br/>and emit category-based JSON"]
runtime["Model Runtime<br/>Hosts the merged Hugging Face model<br/>or a separately converted GGUF artifact"]
app["Application / Reviewer<br/>Submits text and consumes<br/>strict JSON classification results"]
presidio["Downstream Presidio Integration<br/>Consumes compatible MEDICAL_* category/entity types<br/>Implementation is outside this repository"]
operator -->|Operates and reviews| system
sources -->|Curated terminology; provenance manifest needed| system
system -->|Produces model artifacts| runtime
system -.->|Intended category contract| presidio
app -->|Inference requests| runtime
runtime -->|Strict JSON decisions| app
classDef person fill:#fff2cc,stroke:#d6b656,color:#000;
classDef system fill:#1168bd,stroke:#0b4884,color:#fff;
classDef external fill:#d5e8d4,stroke:#82b366,color:#000;
classDef source fill:#f8cecc,stroke:#b85450,color:#000;
class operator,app person;
class system system;
class runtime,presidio external;
class sources source;