<mxfile host="app.diagrams.net" type="device">
  <diagram name="GraphRAG" id="graphrag">
    <mxGraphModel dx="900" dy="600" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1000" pageHeight="480" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title" value="OfferReady — GraphRAG: retrieval that follows relationships" style="text;html=1;fontSize=16;fontStyle=1;align=left;" vertex="1" parent="1">
          <mxGeometry x="30" y="20" width="640" height="30" as="geometry" />
        </mxCell>
        <mxCell id="q" value="Question" style="ellipse;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
          <mxGeometry x="40" y="150" width="100" height="60" as="geometry" />
        </mxCell>
        <mxCell id="ent" value="Identify entities&#10;(optional: vector search&#10;to find entry points)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
          <mxGeometry x="180" y="145" width="150" height="70" as="geometry" />
        </mxCell>
        <mxCell id="trav" value="Traverse graph&#10;(N hops) → subgraph" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
          <mxGeometry x="370" y="145" width="150" height="70" as="geometry" />
        </mxCell>
        <mxCell id="ser" value="Serialize subgraph&#10;to text" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
          <mxGeometry x="560" y="145" width="130" height="70" as="geometry" />
        </mxCell>
        <mxCell id="llm" value="LLM reasons over&#10;connected facts" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontStyle=1;" vertex="1" parent="1">
          <mxGeometry x="730" y="145" width="140" height="70" as="geometry" />
        </mxCell>
        <mxCell id="ans" value="Answer + cited path" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
          <mxGeometry x="900" y="150" width="90" height="60" as="geometry" />
        </mxCell>
        <mxCell id="graph" value="Knowledge graph" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;verticalAlign=top;fontStyle=1;dashed=1;" vertex="1" parent="1">
          <mxGeometry x="330" y="290" width="360" height="150" as="geometry" />
        </mxCell>
        <mxCell id="cust" value="Customer" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="350" y="360" width="80" height="50" as="geometry" />
        </mxCell>
        <mxCell id="ord" value="Order" style="ellipse;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#666666;" vertex="1" parent="1">
          <mxGeometry x="470" y="330" width="70" height="50" as="geometry" />
        </mxCell>
        <mxCell id="sup" value="Supplier&#10;(flagged)" style="ellipse;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
          <mxGeometry x="590" y="370" width="80" height="50" as="geometry" />
        </mxCell>
        <mxCell id="g1" value="PLACED" style="endArrow=block;html=1;fontSize=9;" edge="1" parent="1" source="cust" target="ord"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="g2" value="…SUPPLIED_BY" style="endArrow=block;html=1;fontSize=9;" edge="1" parent="1" source="ord" target="sup"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e1" style="endArrow=block;html=1;" edge="1" parent="1" source="q" target="ent"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e2" style="endArrow=block;html=1;" edge="1" parent="1" source="ent" target="trav"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e3" style="endArrow=block;html=1;" edge="1" parent="1" source="trav" target="ser"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e4" style="endArrow=block;html=1;" edge="1" parent="1" source="ser" target="llm"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e5" style="endArrow=block;html=1;" edge="1" parent="1" source="llm" target="ans"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e6" style="endArrow=block;html=1;dashed=1;" edge="1" parent="1" source="trav" target="graph"><mxGeometry relative="1" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
