<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="lens-query-and-search-paths-35ea12fd" name="Lens query and search paths">
    <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="Lens query and search paths" schemaVersion="1" diagramId="lens-query-and-search-paths-35ea12fd" canonicalAppearanceKey="tsx:src/app/(docs)/docs/modules/lens/page.tsx:lensFlow#1" sourceSha256="35ea12fd82471167699568b860a714dcec1169cc665682f976b5670a0cdf7943" metadataPayloadSha256="8c929abfb1f90eabddeec11c881b0213d297b56473ace5b1b8cfbc90edb166fa" generationKey="a8da916b078da7afbeb705358b895bd50764deff39b947daf2920df257efc169" concepts="[&quot;Lens flow&quot;,&quot;Modules&quot;,&quot;Lens&quot;]" keywords="[&quot;clarify · abstain_with_pointers&quot;,&quot;retrieval pipeline&quot;,&quot;policy pre-gate&quot;,&quot;deterministic answer&quot;,&quot;no chat-model call&quot;,&quot;enforce only&quot;,&quot;chat model&quot;,&quot;cited generation&quot;,&quot;hybrid → graph-fuse → rerank → assemble&quot;,&quot;confidence · caveats · conflicts&quot;,&quot;retrieve() + optional rerank&quot;,&quot;ranked chunks · no model&quot;,&quot;policy_decisions&quot;,&quot;/api/v1/query&quot;,&quot;/api/v1/search&quot;,&quot;POST&quot;,&quot;agents:run&quot;,&quot;proceed&quot;,&quot;post-gate&quot;,&quot;StructuredAnswer&quot;,&quot;append-only&quot;,&quot;GET&quot;,&quot;kb:read&quot;,&quot;SearchResponse&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="TB" generatedAt="2026-08-17T18:34:49.950Z" mermaidSource="flowchart TB&#10;  Ask[&quot;POST /api/v1/query&lt;br/&gt;agents:run&quot;] --&gt; Pipe[&quot;retrieval pipeline&lt;br/&gt;hybrid → graph-fuse → rerank → assemble&quot;]&#10;  Pipe --&gt; Pre{&quot;policy pre-gate&quot;}&#10;  Pre --&gt;|&quot;clarify · abstain_with_pointers&lt;br/&gt;(enforce only)&quot;| Short[&quot;deterministic answer&lt;br/&gt;no chat-model call&quot;]&#10;  Pre --&gt;|&quot;proceed&quot;| Gen[&quot;chat model&lt;br/&gt;cited generation&quot;]&#10;  Gen --&gt; Post[&quot;post-gate&lt;br/&gt;confidence · caveats · conflicts&quot;]&#10;  Short --&gt; Out[&quot;StructuredAnswer&quot;]&#10;  Post --&gt; Out&#10;  Out --&gt; Log[(&quot;policy_decisions&lt;br/&gt;append-only&quot;)]&#10;  Search[&quot;GET /api/v1/search&lt;br/&gt;kb:read&quot;] --&gt; Raw[&quot;retrieve() + optional rerank&quot;]&#10;  Raw --&gt; SRes[&quot;SearchResponse&lt;br/&gt;ranked chunks · no model&quot;]">
          <mxCell parent="0"/>
        </object>
        <object id="n:Ask" label="POST /api/v1/queryagents:run" mermaidId="Ask" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="155.558594" y="8" width="202.78125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Pipe" label="retrieval pipelinehybrid → graph-fuse → rerank → assemble" mermaidId="Pipe" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="128.949219" y="134" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Pre" label="policy pre-gate" mermaidId="Pre" mermaidShape="diamond">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;perimeter=rhombusPerimeter;shape=rhombus;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="173.996094" y="284" width="166.90625" height="166.90625" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Short" label="deterministic answerno chat-model call" mermaidId="Short" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="8" y="662.90625" width="213.265625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Gen" label="chat modelcited generation" mermaidId="Gen" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="309.859375" y="524.90625" width="178.8125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Post" label="post-gateconfidence · caveats · conflicts" mermaidId="Post" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="271.265625" y="650.90625" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Out" label="StructuredAnswer" mermaidId="Out" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="160.550781" y="800.90625" width="192.796875" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Log" label="policy_decisionsappend-only" mermaidId="Log" mermaidShape="cylinder">
          <mxCell parent="1" vertex="1" style="backgroundOutline=1;boundedLbl=1;fillColor=#ECECFF;fontColor=#333333;html=1;shape=cylinder3;size=15;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="188.472656" y="902.906248" width="136.953125" height="101.211154" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Search" label="GET /api/v1/searchkb:read" mermaidId="Search" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="463.394531" y="8" width="199.109375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:Raw" label="retrieve() + optional rerank" mermaidId="Raw" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="434.949219" y="146" width="256" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:SRes" label="SearchResponseranked chunks · no model" mermaidId="SRes" mermaidShape="rectangle">
          <mxCell parent="1" vertex="1" style="fillColor=#ECECFF;fontColor=#333333;html=1;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="437.441406" y="329.453125" width="251.015625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_Ask_Pipe_0" label="" mermaidId="L_Ask_Pipe_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Ask" target="n:Pipe" 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="256.949219" y="84" as="sourcePoint"/>
              <mxPoint x="256.949219" y="134" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="256.949219" y="109"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Pipe_Pre_0" label="" mermaidId="L_Pipe_Pre_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Pipe" target="n:Pre" 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="256.949219" y="234" as="sourcePoint"/>
              <mxPoint x="256.949219" y="284" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="256.949219" y="259"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Pre_Short_0" label="clarify · abstain_with_pointers(enforce only)" mermaidId="L_Pre_Short_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Pre" target="n:Short" 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="211.75087" y="405.707902" as="sourcePoint"/>
              <mxPoint x="114.632813" y="662.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="114.632813" y="487.90625"/>
                <mxPoint x="114.632813" y="562.90625"/>
                <mxPoint x="114.632813" y="625.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Pre_Gen_0" label="proceed" mermaidId="L_Pre_Gen_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Pre" target="n:Gen" 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="302.147567" y="405.707902" as="sourcePoint"/>
              <mxPoint x="399.265625" y="524.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="399.265625" y="487.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Gen_Post_0" label="" mermaidId="L_Gen_Post_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Gen" target="n:Post" 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="399.265625" y="600.90625" as="sourcePoint"/>
              <mxPoint x="399.265625" y="650.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="399.265625" y="625.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Short_Out_0" label="" mermaidId="L_Short_Out_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Short" target="n:Out" 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="114.632813" y="738.90625" as="sourcePoint"/>
              <mxPoint x="184.395757" y="800.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="114.632813" y="775.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Post_Out_0" label="" mermaidId="L_Post_Out_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Post" target="n:Out" 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="399.265625" y="750.90625" as="sourcePoint"/>
              <mxPoint x="329.502681" y="800.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="399.265625" y="775.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Out_Log_0" label="" mermaidId="L_Out_Log_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Out" target="n:Log" 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="256.949219" y="852.90625" as="sourcePoint"/>
              <mxPoint x="256.949219" y="902.90625" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="256.949219" y="877.90625"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Search_Raw_0" label="" mermaidId="L_Search_Raw_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Search" target="n:Raw" 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="562.949219" y="84" as="sourcePoint"/>
              <mxPoint x="562.949219" y="146" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="562.949219" y="109"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_Raw_SRes_0" label="" mermaidId="L_Raw_SRes_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:Raw" target="n:SRes" 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="562.949219" y="222" as="sourcePoint"/>
              <mxPoint x="562.949219" y="329.453125" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="562.949219" y="259"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
