<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="relation-insight-computation-e333c685" name="Relation insight computation">
    <mxGraphModel dx="1600" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <object id="1" label="Relation insight computation" schemaVersion="1" diagramId="relation-insight-computation-e333c685" canonicalAppearanceKey="tsx:src/app/(docs)/docs/concepts/relation-explainability/page.tsx:insightChart#1" sourceSha256="e333c685a00d33758aba8ea601f19ef82cc03120a0286ed96c9a531d05f7caa7" metadataPayloadSha256="ef7ca90dc3623821d239904d65d669ebdb3f460dcec6247ba48086b776544e93" generationKey="3baecbca80a8fdf93bd802e31fe77206bf2ef158665c7c5c066533d2a20007da" concepts="[&quot;Relation explainability&quot;,&quot;Insight&quot;]" keywords="[&quot;src, dst&quot;,&quot;by relation type&quot;,&quot;directed vs symmetric&quot;,&quot;assertion term E&quot;,&quot;s / (s + 2)&quot;,&quot;association term A&quot;,&quot;NPMI (Jaccard fallback)&quot;,&quot;composite score&quot;,&quot;co-mention contexts&quot;,&quot;shared documents&quot;,&quot;edge click / Why? expander&quot;,&quot;typed relations + mention counts&quot;,&quot;doc universe for the pair&quot;,&quot;quotes, assertional first&quot;,&quot;deterministic explanation sentence&quot;,&quot;canonical_relations&quot;,&quot;relation_evidence&quot;,&quot;mentions&quot;,&quot;direction&quot;,&quot;EdgeInsight&quot;]" application="{&quot;name&quot;:&quot;eli-ai&quot;,&quot;version&quot;:&quot;0.1.0&quot;}" packages="{&quot;mermaid&quot;:&quot;11.16.0&quot;,&quot;mermaidCli&quot;:&quot;11.16.0&quot;,&quot;playwright&quot;:&quot;1.62.1&quot;,&quot;playwrightCore&quot;:&quot;1.62.1&quot;,&quot;puppeteer&quot;:&quot;25.6.0&quot;,&quot;puppeteerCore&quot;:&quot;25.6.0&quot;}" environment="{&quot;architecture&quot;:&quot;x64&quot;,&quot;containerImage&quot;:&quot;playwright:v1.62.1-noble@sha256:c091b21d9fae78c76e85cd4356431e9b018402f172a214fc7d7a5e9a7e29d8ac+node:26.3.1-bookworm-slim@sha256:209558c3e5e40e8adff68959d3c2ba7cd73723e716d89196878a0c362fa1e109&quot;,&quot;node&quot;:&quot;v26.3.1&quot;,&quot;platform&quot;:&quot;linux&quot;,&quot;yarn&quot;:&quot;4.17.1&quot;}" renderer="{&quot;browser&quot;:{&quot;executableSha256&quot;:&quot;0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71&quot;,&quot;name&quot;:&quot;chromium&quot;,&quot;revision&quot;:&quot;1234&quot;,&quot;version&quot;:&quot;151.0.7922.34&quot;},&quot;font&quot;:{&quot;family&quot;:&quot;Eli Diagram Inter Variable&quot;,&quot;fileSha256&quot;:&quot;3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62&quot;,&quot;licenseSha256&quot;:&quot;3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345&quot;},&quot;mermaidConfigSha256&quot;:&quot;68c10966fe84406ee626034d58bfabd555df9f65f691204b7c46db24038da101&quot;,&quot;themeCssSha256&quot;:&quot;c80287a78d80ad63d27bd5ca348b2ef9a7e2f44da289e436be6484ea28a1b033&quot;}" adapterVersions="{&quot;diagramGenerator&quot;:&quot;2&quot;,&quot;drawioFlowchart&quot;:&quot;1&quot;,&quot;drawioGantt&quot;:&quot;1&quot;,&quot;drawioSequence&quot;:&quot;1&quot;,&quot;drawioState&quot;:&quot;1&quot;}" mermaidType="flowchart" direction="LR" generatedAt="2026-08-12T23:41:07.486Z" mermaidSource="flowchart LR&#10;  Edge[&quot;edge click / Why? expander&lt;br/&gt;(src, dst)&quot;] --&gt; Rel[&quot;canonical_relations&lt;br/&gt;typed relations + mention counts&quot;]&#10;  Edge --&gt; Docs[&quot;mentions&lt;br/&gt;doc universe for the pair&quot;]&#10;  Rel --&gt; Dir[&quot;direction&lt;br/&gt;by relation type&lt;br/&gt;(directed vs symmetric)&quot;]&#10;  Rel --&gt; E[&quot;assertion term E&lt;br/&gt;s / (s + 2)&quot;]&#10;  Docs --&gt; A[&quot;association term A&lt;br/&gt;NPMI (Jaccard fallback)&quot;]&#10;  E --&gt; Score[&quot;composite score&lt;br/&gt;1 − (1−E)(1−A)&quot;]&#10;  A --&gt; Score&#10;  Rel --&gt; Ev[&quot;relation_evidence&lt;br/&gt;quotes, assertional first&quot;]&#10;  Docs --&gt; Co[&quot;co-mention contexts&lt;br/&gt;shared documents&quot;]&#10;  Dir --&gt; Insight[&quot;EdgeInsight&quot;]&#10;  Score --&gt; Insight&#10;  Ev --&gt; Insight&#10;  Co --&gt; Insight&#10;  Insight --&gt; Expl[&quot;deterministic explanation sentence&quot;]">
          <mxCell parent="0"/>
        </object>
        <object id="n:Edge" label="edge click / Why? expander(src, dst)" mermaidId="Edge" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="8" y="308.5" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Rel" label="canonical_relationstyped relations + mention counts" mermaidId="Rel" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="314" y="119.5" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Docs" label="mentionsdoc universe for the pair" mermaidId="Docs" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="321.46875" y="389.5" width="241.0625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Dir" label="directionby relation type(directed vs symmetric)" mermaidId="Dir" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="908.0625" y="8" width="235.078125" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:E" label="assertion term Es / (s + 2)" mermaidId="E" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="649.554688" y="131.5" width="178.953125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:A" label="association term ANPMI (Jaccard fallback)" mermaidId="A" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="620" y="257.5" width="238.0625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Score" label="composite score1 − (1−E)(1−A)" mermaidId="Score" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="934.78125" y="188.5" width="181.640625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Ev" label="relation_evidencequotes, assertional first" mermaidId="Ev" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="908.945313" y="357" width="233.3125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Co" label="co-mention contextsshared documents" mermaidId="Co" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="919.421875" y="483" width="212.359375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Insight" label="EdgeInsight" mermaidId="Insight" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1193.140625" y="263.5" width="145.140625" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Expl" label="deterministic explanation sentence" mermaidId="Expl" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1388.28125" y="251.5" width="256" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_Edge_Rel_0" label="" mermaidId="L_Edge_Rel_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Edge" target="n:Rel" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="176.47619" y="308.5" as="sourcePoint"/>
              <mxPoint x="314" y="169.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="289" y="169.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Edge_Docs_0" label="" mermaidId="L_Edge_Docs_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Edge" target="n:Docs" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="246.869565" y="408.5" as="sourcePoint"/>
              <mxPoint x="321.46875" y="427.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="289" y="427.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Rel_Dir_0" label="" mermaidId="L_Rel_Dir_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Rel" target="n:Dir" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="510.609865" y="119.5" as="sourcePoint"/>
              <mxPoint x="908.0625" y="58" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="595" y="58"/>
                <mxPoint x="739.03125" y="58"/>
                <mxPoint x="883.0625" y="58"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Rel_E_0" label="" mermaidId="L_Rel_E_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Rel" target="n:E" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="570" y="169.5" as="sourcePoint"/>
              <mxPoint x="649.554688" y="169.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="595" y="169.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Docs_A_0" label="" mermaidId="L_Docs_A_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Docs" target="n:A" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="486.045455" y="389.5" as="sourcePoint"/>
              <mxPoint x="620" y="295.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="595" y="295.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_E_Score_0" label="" mermaidId="L_E_Score_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:E" target="n:Score" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="828.507813" y="169.5" as="sourcePoint"/>
              <mxPoint x="934.78125" y="190.181831" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="883.0625" y="169.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_A_Score_0" label="" mermaidId="L_A_Score_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:A" target="n:Score" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="858.0625" y="295.5" as="sourcePoint"/>
              <mxPoint x="947.101789" y="264.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="883.0625" y="295.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Rel_Ev_0" label="" mermaidId="L_Rel_Ev_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Rel" target="n:Ev" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="475.924612" y="219.5" as="sourcePoint"/>
              <mxPoint x="908.945313" y="395" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="595" y="395"/>
                <mxPoint x="739.03125" y="395"/>
                <mxPoint x="883.0625" y="395"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Docs_Co_0" label="" mermaidId="L_Docs_Co_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Docs" target="n:Co" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="504.181818" y="465.5" as="sourcePoint"/>
              <mxPoint x="919.421875" y="521" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="595" y="521"/>
                <mxPoint x="739.03125" y="521"/>
                <mxPoint x="883.0625" y="521"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Dir_Insight_0" label="" mermaidId="L_Dir_Insight_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Dir" target="n:Insight" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1143.140625" y="58" as="sourcePoint"/>
              <mxPoint x="1254.752717" y="263.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1168.140625" y="58"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Score_Insight_0" label="" mermaidId="L_Score_Insight_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Score" target="n:Insight" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1116.421875" y="226.5" as="sourcePoint"/>
              <mxPoint x="1225.443824" y="263.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1168.140625" y="226.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Ev_Insight_0" label="" mermaidId="L_Ev_Insight_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Ev" target="n:Insight" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1142.257813" y="395" as="sourcePoint"/>
              <mxPoint x="1241.665173" y="315.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1168.140625" y="395"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Co_Insight_0" label="" mermaidId="L_Co_Insight_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Co" target="n:Insight" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1131.78125" y="521" as="sourcePoint"/>
              <mxPoint x="1254.752717" y="315.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1168.140625" y="521"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Insight_Expl_0" label="" mermaidId="L_Insight_Expl_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Insight" target="n:Expl" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1338.28125" y="289.5" as="sourcePoint"/>
              <mxPoint x="1388.28125" y="289.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1363.28125" y="289.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
