Files
rag-technical-docs-assistant/docs/presentation/01-system.svg
T

102 lines
7.5 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000" role="img">
<title>System architecture</title>
<desc>Deployed application boundaries and shared storage</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">System architecture</text>
<text x="75" y="115" class="sub">Deployed application boundaries and shared storage</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="M610.0,335 L610.0,435" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M610.0,335 L610.0,385.0 L235.0,385.0 L235.0,435" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M596.0,580 L596.0,680" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M610.0,680 L610.0,618 L235.0,618 L235.0,580" 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="M610.0,680 L610.0,644 L1360.0,644 L1360.0,580" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M624.0,680 L624.0,580" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M985.0,335 L985.0,435" 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="M1145,507.5 L1200,507.5" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<path d="M235.0,680 L235.0,605 L610.0,605 L610.0,580" fill="none" stroke="#94a3b8" stroke-width="2.2" marker-end="url(#arrow)"/>
<rect x="75" y="190" width="320" height="145" rx="16" fill="#e8f0fe" stroke="#2563eb" stroke-width="1.8"/>
<rect x="75" y="212" width="5" height="101" rx="2" fill="#2563eb"/>
<text x="95" y="230" class="node">Browser / Angular</text>
<text x="95" y="268" class="detail">Admin uploads; user voice</text>
<text x="95" y="298" class="detail">REST and browser WebSocket</text>
<rect x="450" y="190" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
<rect x="450" y="212" width="5" height="101" rx="2" fill="#0f766e"/>
<text x="470" y="230" class="node">FastAPI API</text>
<text x="470" y="268" class="detail">Auth, lifecycle, selection</text>
<text x="470" y="298" class="detail">Server-derived organization</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">VoiceRuntime + adapter</text>
<text x="845" y="268" class="detail">Audio relay and trusted tools</text>
<text x="845" y="298" class="detail">OpenAI Realtime protocol</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">OpenAI Realtime</text>
<text x="1220" y="268" class="detail">gpt-realtime-2.1 / Marin</text>
<text x="1220" y="298" class="detail">Audio, transcripts, tool calls</text>
<rect x="75" y="435" width="320" height="145" rx="16" fill="#f2eaff" stroke="#7c3aed" stroke-width="1.8"/>
<rect x="75" y="457" width="5" height="101" rx="2" fill="#7c3aed"/>
<text x="95" y="475" class="node">Immutable file storage</text>
<text x="95" y="513" class="detail">Originals and extraction artifacts</text>
<text x="95" y="543" class="detail">Checksums and frozen profiles</text>
<rect x="450" y="435" width="320" height="145" rx="16" fill="#f2eaff" stroke="#7c3aed" stroke-width="1.8"/>
<rect x="450" y="457" width="5" height="101" rx="2" fill="#7c3aed"/>
<text x="470" y="475" class="node">PostgreSQL + pgvector</text>
<text x="470" y="513" class="detail">Documents, jobs, chunks, sessions</text>
<text x="470" y="543" class="detail">Evidence and audit records</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">Backend SearchService</text>
<text x="845" y="513" class="detail">Shared bounded retrieval</text>
<text x="845" y="543" class="detail">Eligibility and revision checks</text>
<rect x="1200" y="435" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
<rect x="1200" y="457" width="5" height="101" rx="2" fill="#c56a08"/>
<text x="1220" y="475" class="node">Local embedding service</text>
<text x="1220" y="513" class="detail">Ollama / bge-m3</text>
<text x="1220" y="543" class="detail">Document and query vectors</text>
<rect x="75" y="680" width="320" height="145" rx="16" fill="#e8f0fe" stroke="#2563eb" stroke-width="1.8"/>
<rect x="75" y="702" width="5" height="101" rx="2" fill="#2563eb"/>
<text x="95" y="720" class="node">Admin knowledge selection</text>
<text x="95" y="758" class="detail">Ready is not yet searchable</text>
<text x="95" y="788" class="detail">Explicit active selection</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">Separate ingestion worker</text>
<text x="470" y="758" class="detail">Claim, extract, chunk, embed</text>
<text x="470" y="788" class="detail">Lease-fenced atomic publication</text>
<rect x="825" y="680" width="320" height="145" rx="16" fill="#fff2dd" stroke="#c56a08" stroke-width="1.8"/>
<rect x="825" y="702" width="5" height="101" rx="2" fill="#c56a08"/>
<text x="845" y="720" class="node">Vision extraction adapter</text>
<text x="845" y="758" class="detail">OpenRouter / Gemini 2.5 Flash</text>
<text x="845" y="788" class="detail">Affected PDF pages and images</text>
<rect x="1200" y="680" width="320" height="145" rx="16" fill="#e6f7f2" stroke="#0f766e" stroke-width="1.8"/>
<rect x="1200" y="702" width="5" height="101" rx="2" fill="#0f766e"/>
<text x="1220" y="720" class="node">Operational control</text>
<text x="1220" y="758" class="detail">Health, structured diagnostics</text>
<text x="1220" y="788" class="detail">Original API retained for rollback</text>
<text x="75" y="890" class="detail">Scope: current voice MVP. Full text chat/history and production multi-API recovery are not presented as complete.</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>