63 lines
7.3 KiB
Plaintext
63 lines
7.3 KiB
Plaintext
<mxfile host="app.diagrams.net" modified="2026-10-15T15:00:00.000Z" agent="Copilot" version="24.7.17">
|
|
<diagram id="generator-components" name="C4 Level 3 - Generator Components">
|
|
<mxGraphModel dx="1422" dy="794" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="1000" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
<mxCell id="title" value="Generator API - C4 Level 3: Components" style="text;html=1;align=center;fontSize=24;fontStyle=1" vertex="1" parent="1">
|
|
<mxGeometry x="450" y="20" width="900" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="boundary" value="RLHF.Generator.Api + RLHF.Generator" style="swimlane;html=1;startSize=35;rounded=1;fillColor=none;strokeColor=#1168bd;fontSize=16;fontStyle=1" vertex="1" parent="1">
|
|
<mxGeometry x="160" y="80" width="1450" height="780" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="routes" value="<b>HTTP Endpoints</b><br>Program.cs<br>Validation, contracts, status mapping" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="50" y="90" width="240" height="120" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="reader" value="<b>TrainingDataReader</b><br>Validates and parses subjects, categories, and patterns" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="360" y="90" width="240" height="120" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="generation" value="<b>TrainingGenerationService</b><br>Plans, fingerprints, resumes, parallelizes, orders, validates, checkpoints" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1168bd;strokeColor=#0b4884;fontColor=#ffffff;fontSize=14" vertex="1" parent="boundary">
|
|
<mxGeometry x="680" y="280" width="300" height="160" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="lmclient" value="<b>LmStudioClient</b><br>Local token resolution, prompt construction, HTTP completion" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="1070" y="90" width="260" height="120" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="keyword" value="<b>Keyword Services</b><br>Load canonical values/variants; dry-run or apply unique backfill" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="50" y="550" width="260" height="130" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="reset" value="<b>TrainingItemResetService</b><br>Clears generated rows and run checkpoints" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="380" y="550" width="250" height="130" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="dbcontext" value="<b>RlhfGeneratorDbContext</b><br>EF Core mappings, seeds, indexes, relationships, transactions" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="720" y="550" width="270" height="130" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="options" value="<b>Options</b><br>GenerationOptions<br>LmStudioOptions<br>SentenceTenses" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#85bbf0;strokeColor=#0b4884;fontSize=13" vertex="1" parent="boundary">
|
|
<mxGeometry x="1070" y="550" width="260" height="130" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="data" value="Catalog and pattern files" style="shape=folder;tabWidth=50;tabHeight=18;tabPosition=left;html=1;whiteSpace=wrap;fillColor=#d5e8d4;strokeColor=#82b366" vertex="1" parent="1">
|
|
<mxGeometry x="20" y="200" width="120" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="lm" value="LM Studio API" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6" vertex="1" parent="1">
|
|
<mxGeometry x="1640" y="200" width="120" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="sql" value="SQL Server" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;fillColor=#e1d5e7;strokeColor=#9673a6" vertex="1" parent="1">
|
|
<mxGeometry x="1640" y="640" width="120" height="90" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="e1" value="Dispatches" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="routes" target="generation"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e2" value="Reads definitions" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="generation" target="reader"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e3" value="Normalizes" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="generation" target="lmclient"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e4" value="HTTP chat completion" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="lmclient" target="lm"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e5" value="Persists batches" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="generation" target="dbcontext"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e6" value="EF Core SQL" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="dbcontext" target="sql"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e7" value="Reads" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="data" target="reader"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e8" value="Configures" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="options" target="generation"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e9" value="Configures" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="options" target="lmclient"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e10" value="Dispatches" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="routes" target="keyword"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e11" value="Dispatches" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="routes" target="reset"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e12" value="Uses" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="keyword" target="dbcontext"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
<mxCell id="e13" value="Uses" style="edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block" edge="1" parent="1" source="reset" target="dbcontext"><mxGeometry relative="1" as="geometry"/></mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|