87 lines
7.2 KiB
XML
87 lines
7.2 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000" role="img">
|
|
<title>AI and grounded retrieval pipeline</title>
|
|
<desc>The model chooses tools; the backend owns identity and evidence</desc>
|
|
<defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="8" refY="4.5" orient="auto"><path d="M0,0 L9,4.5 L0,9" fill="#64748b"/></marker></defs>
|
|
<rect width="1600" height="1000" fill="#ffffff"/>
|
|
<style>text{font-family:Segoe UI,Arial,sans-serif}.title{font-size:38px;font-weight:700;fill:#0f172a}.sub{font-size:21px;fill:#475569}.node{font-size:21px;font-weight:650;fill:#0f172a}.detail{font-size:17px;fill:#475569}.edge{font-size:14px;fill:#475569}</style>
|
|
<text x="75" y="75" class="title">AI and grounded retrieval pipeline</text>
|
|
<text x="75" y="115" class="sub">The model chooses tools; the backend owns identity and evidence</text>
|
|
<path d="M395,262.5 L450,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M770,262.5 L825,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1145,262.5 L1200,262.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1360.0,335 L1360.0,435" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1200,507.5 L1145,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M825,507.5 L770,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M450,507.5 L395,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M235.0,580 L235.0,680" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
|
|
<path d="M395,752.5 L450,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M770,752.5 L825,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<path d="M1145,752.5 L1200,752.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
|
|
<rect x="75" y="190" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="75" y="212" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="95" y="230" class="node">1. Committed user speech</text>
|
|
<text x="95" y="268" class="detail">Audio + current conversation</text>
|
|
<text x="95" y="298" class="detail">Grounding and delivery policy</text>
|
|
<rect x="450" y="190" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="450" y="212" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="470" y="230" class="node">2. Decide evidence need</text>
|
|
<text x="470" y="268" class="detail">New topic: search_knowledge</text>
|
|
<text x="470" y="298" class="detail">Same topic: reuse_last_evidence</text>
|
|
<rect x="825" y="190" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="212" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="230" class="node">3. Trusted tool dispatch</text>
|
|
<text x="845" y="268" class="detail">Validate schema / deadline</text>
|
|
<text x="845" y="298" class="detail">Backend identity; durable dedup</text>
|
|
<rect x="1200" y="190" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="1200" y="212" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="1220" y="230" class="node">4. Query embedding</text>
|
|
<text x="1220" y="268" class="detail">Normalize query</text>
|
|
<text x="1220" y="298" class="detail">Local bge-m3 vector</text>
|
|
<rect x="75" y="435" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="75" y="457" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="95" y="475" class="node">8. Prepare supported answer</text>
|
|
<text x="95" y="513" class="detail">Preserve names / dates / limits</text>
|
|
<text x="95" y="543" class="detail">No invented missing facts</text>
|
|
<rect x="450" y="435" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="450" y="457" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="470" y="475" class="node">7. Private evidence result</text>
|
|
<text x="470" y="513" class="detail">ok / no_evidence / error</text>
|
|
<text x="470" y="543" class="detail">Document + chunk identities</text>
|
|
<rect x="825" y="435" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="457" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="475" class="node">6. Admit evidence</text>
|
|
<text x="845" y="513" class="detail">Measured cutoff; max 5 chunks</text>
|
|
<text x="845" y="543" class="detail">Max 12,000 chars per retrieval</text>
|
|
<rect x="1200" y="435" width="320" height="145" rx="16" fill="#f2eaff" stroke="#7c3aed" stroke-width="1.8"/>
|
|
<rect x="1200" y="457" width="5" height="101" rx="2" fill="#7c3aed"/>
|
|
<text x="1220" y="475" class="node">5. Hybrid retrieval</text>
|
|
<text x="1220" y="513" class="detail">Semantic + exact-pattern search</text>
|
|
<text x="1220" y="543" class="detail">Ready, active, authorized only</text>
|
|
<rect x="75" y="680" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
|
|
<rect x="75" y="702" width="5" height="101" rx="2" fill="#c56a08"/>
|
|
<text x="95" y="720" class="node">9. Declare used sources</text>
|
|
<text x="95" y="758" class="detail">report_used_sources</text>
|
|
<text x="95" y="788" class="detail">Only supporting current-turn labels</text>
|
|
<rect x="450" y="680" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="450" y="702" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="470" y="720" class="node">10. Validate and deliver</text>
|
|
<text x="470" y="758" class="detail">Recheck scope / label / eligibility</text>
|
|
<text x="470" y="788" class="detail">Invalid reports corrected privately</text>
|
|
<rect x="825" y="680" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
|
|
<rect x="825" y="702" width="5" height="101" rx="2" fill="#0f766e"/>
|
|
<text x="845" y="720" class="node">11. Stream answer</text>
|
|
<text x="845" y="758" class="detail">Audio + transcript</text>
|
|
<text x="845" y="788" class="detail">Runtime playback / interruption</text>
|
|
<rect x="1200" y="680" width="320" height="145" rx="16" fill="#e8f0fe" stroke="#2563eb" stroke-width="1.8"/>
|
|
<rect x="1200" y="702" width="5" height="101" rx="2" fill="#2563eb"/>
|
|
<text x="1220" y="720" class="node">12. Browser presentation</text>
|
|
<text x="1220" y="758" class="detail">Play audio; show used subset</text>
|
|
<text x="1220" y="788" class="detail">Retrieval candidates stay private</text>
|
|
<text x="75" y="890" class="detail">Retrieval branches: 50 semantic + up to 50 exact-pattern candidates, deduplicated. Greetings need no retrieval; failures never authorize</text>
|
|
<text x="75" y="915" class="detail">fallback facts.</text>
|
|
<circle cx="83" cy="962" r="7" fill="#2563eb"/><text x="100" y="968" class="detail">Frontend / admin</text>
|
|
<circle cx="458" cy="962" r="7" fill="#0f766e"/><text x="475" y="968" class="detail">Backend logic</text>
|
|
<circle cx="833" cy="962" r="7" fill="#7c3aed"/><text x="850" y="968" class="detail">Persistent state</text>
|
|
<circle cx="1208" cy="962" r="7" fill="#c56a08"/><text x="1225" y="968" class="detail">AI / embedding provider</text>
|
|
</svg> |