<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" agent="Mozilla/5.0" version="24.7.17" type="device"><diagram id="rag-ingestion-trusted-answer" name="RAG Architecture"><mxGraphModel dx="1600" dy="1100" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1100" math="0" shadow="0"><root><mxCell id="0" /><mxCell id="1" parent="0" /><mxCell id="bg1" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;fillOpacity=65;strokeColor=#b9b7b0;strokeWidth=1.5;arcSize=14;" vertex="1" parent="1"><mxGeometry x="48" y="176" width="1504" height="286" as="geometry" /></mxCell><mxCell id="bg2" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffffff;fillOpacity=65;strokeColor=#b9b7b0;strokeWidth=1.5;arcSize=14;" vertex="1" parent="1"><mxGeometry x="48" y="602" width="1504" height="282" as="geometry" /></mxCell><mxCell id="title" value="RAG architecture: ingestion to trusted answer" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontFamily=Georgia;fontSize=30;fontColor=#202020;" vertex="1" parent="1"><mxGeometry x="70" y="45" width="1120" height="50" as="geometry" /></mxCell><mxCell id="subtitle" value="Two coordinated paths prepare authorised evidence and use it to answer a question." style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#65645f;" vertex="1" parent="1"><mxGeometry x="70" y="100" width="1300" height="30" as="geometry" /></mxCell><mxCell id="label1" value="OFFLINE INGESTION PATH" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontFamily=Arial;fontSize=15;fontStyle=1;fontColor=#615f59;" vertex="1" parent="1"><mxGeometry x="76" y="190" width="430" height="32" as="geometry" /></mxCell><mxCell id="label2" value="ONLINE QUERY PATH" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;fontFamily=Arial;fontSize=15;fontStyle=1;fontColor=#615f59;" vertex="1" parent="1"><mxGeometry x="76" y="615" width="430" height="32" as="geometry" /></mxCell><mxCell id="t2" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;01 · SOURCE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:17px;margin:12px 0&quot;&gt;Enterprise content&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;SharePoint · Blob · SQL&lt;br&gt;Wikis · internal APIs&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#efeee9;" vertex="1" parent="1"><mxGeometry x="75" y="278" width="250" height="145" as="geometry" /></mxCell><mxCell id="t3" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;02 · PROCESS&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:17px;margin:12px 0&quot;&gt;Extract and validate&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Parsing · OCR · structure&lt;br&gt;Quality checks · versions&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e4efe7;" vertex="1" parent="1"><mxGeometry x="375" y="278" width="250" height="145" as="geometry" /></mxCell><mxCell id="t4" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;03 · PREPARE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:17px;margin:12px 0&quot;&gt;Chunk and enrich&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Structure-aware passages&lt;br&gt;Metadata · embeddings&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e5edf5;" vertex="1" parent="1"><mxGeometry x="675" y="278" width="250" height="145" as="geometry" /></mxCell><mxCell id="t5" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;04 · SECURE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:17px;margin:12px 0&quot;&gt;Attach permissions&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Identity and group claims&lt;br&gt;Source ACL · lifecycle&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#f6edcf;" vertex="1" parent="1"><mxGeometry x="975" y="278" width="250" height="145" as="geometry" /></mxCell><mxCell id="t6" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;05 · INDEX&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:17px;margin:12px 0&quot;&gt;Azure AI Search&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Text · vectors · metadata&lt;br&gt;Filterable security fields&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e9e4f1;" vertex="1" parent="1"><mxGeometry x="1275" y="278" width="250" height="145" as="geometry" /></mxCell><mxCell id="b7" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;01 · ASK&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Question + identity&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Authenticated user&lt;br&gt;Trusted claims&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#efeee9;" vertex="1" parent="1"><mxGeometry x="70" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="b8" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;02 · INTERPRET&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Understand query&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Rewrite · split&lt;br&gt;Apply query filters&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e5edf5;" vertex="1" parent="1"><mxGeometry x="320" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="b9" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;03 · RETRIEVE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Azure AI Search&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Keyword + vector&lt;br&gt;Permission filter · RRF&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e4efe7;" vertex="1" parent="1"><mxGeometry x="570" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="b10" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;04 · REFINE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Rerank and select&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Relevant authorised chunks&lt;br&gt;Respect token budget&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#f6edcf;" vertex="1" parent="1"><mxGeometry x="820" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="b11" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;05 · GENERATE&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Grounded response&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Question + evidence&lt;br&gt;Citations · fallback&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#e9e4f1;" vertex="1" parent="1"><mxGeometry x="1070" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="b12" value="&lt;div style=&quot;font-size:10px;color:#66645e;letter-spacing:1px&quot;&gt;06 · VERIFY&lt;/div&gt;&lt;div style=&quot;font-weight:bold;font-size:16px;margin:12px 0&quot;&gt;Validate and answer&lt;/div&gt;&lt;div style=&quot;font-size:12px;color:#5f5e58&quot;&gt;Check claim support&lt;br&gt;Answer or abstain&lt;/div&gt;" style="rounded=1;whiteSpace=wrap;html=1;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=16;fontColor=#202020;strokeColor=#30302e;strokeWidth=2;arcSize=14;fillColor=#f4e4df;" vertex="1" parent="1"><mxGeometry x="1320" y="680" width="210" height="150" as="geometry" /></mxCell><mxCell id="controls" value="&lt;div style=&quot;font-size:12px;font-weight:bold;letter-spacing:1px;color:#66645e&quot;&gt;SHARED CONTROLS ACROSS BOTH PATHS&lt;/div&gt;&lt;br&gt;Access control · Grounding and citations · Evaluation · Audit and monitoring" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f0efeb;strokeColor=#30302e;strokeWidth=1.8;arcSize=14;fontFamily=Arial;fontSize=15;fontColor=#33332f;" vertex="1" parent="1"><mxGeometry x="80" y="924" width="1440" height="94" as="geometry" /></mxCell><mxCell id="et2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="t2" target="t3"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="et3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="t3" target="t4"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="et4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="t4" target="t5"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="et5" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="t5" target="t6"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="eb7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="b7" target="b8"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="eb8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="b8" target="b9"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="eb9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="b9" target="b10"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="eb10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="b10" target="b11"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="eb11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;" edge="1" parent="1" source="b11" target="b12"><mxGeometry relative="1" as="geometry" /></mxCell><mxCell id="index-handoff" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;endArrow=block;endFill=1;strokeColor=#343434;strokeWidth=2;dashed=1;strokeColor=#62615c;" edge="1" parent="1" source="t6" target="b9"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="1400" y="520" /><mxPoint x="675" y="520" /></Array></mxGeometry></mxCell><mxCell id="handoff-label" value="indexed chunks" style="text;html=1;strokeColor=none;fillColor=#fbfaf7;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=13;fontStyle=1;fontColor=#62615c;" vertex="1" parent="1"><mxGeometry x="1010" y="490" width="165" height="28" as="geometry" /></mxCell><mxCell id="foot" value="Conceptual architecture. Enforce permissions before evidence reaches the model." style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;fontFamily=Arial;fontSize=12;fontColor=#66645e;" vertex="1" parent="1"><mxGeometry x="200" y="1040" width="1200" height="25" as="geometry" /></mxCell></root></mxGraphModel></diagram></mxfile>