From 5a4786d0fe3c642c27689120d440ae16b9148c11 Mon Sep 17 00:00:00 2001 From: amirhosein mazaheri Date: Wed, 14 Oct 2026 15:20:28 +0330 Subject: [PATCH] docs(presentation): align embedded architecture source --- docs/presentation/README.md | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/docs/presentation/README.md b/docs/presentation/README.md index 0e49fbe..9501201 100644 --- a/docs/presentation/README.md +++ b/docs/presentation/README.md @@ -67,24 +67,15 @@ conversation و voice session رزرو می‌شوند و مدل، صدا، تن ### 01-system ```mermaid -flowchart LR - U[User / Admin] --> UI[Angular frontend] - UI -->|REST + session cookie + CSRF| API[FastAPI API] - UI <-->|WebSocket: PCM + JSON events| API - API --> AUTH[Authentication / role / organization] - API -->|Upload: independent document + job| DB[(PostgreSQL + pgvector)] - API --> FS[(Immutable originals / extraction artifacts)] - W[Separate ingestion worker] -->|Claim job + lease + heartbeat| DB - W -->|Read original / retain extraction| FS - W --> OCR[OpenRouter vision / Gemini Flash] - W --> EMB[Local Ollama / bge-m3] - W -->|Atomic chunks + vectors publication| DB - API --> RT[OpenAI Realtime adapter] - RT <-->|Provider WebSocket| OAI[OpenAI gpt-realtime-2.1 / Marin] - RT -->|Validated tools| SEARCH[Shared backend SearchService] - SEARCH --> EMB - SEARCH -->|Eligible document chunks| DB - API -->|Selection / revision invalidation| DB +flowchart TB + UI[Angular frontend: uploads + voice] <-->|REST / browser WebSocket| API[FastAPI: auth + lifecycle + VoiceRuntime + SearchService] + API <-->|Provider WebSocket| OAI[OpenAI Realtime] + API <-->|State + eligible retrieval| DB[(PostgreSQL + pgvector)] + W[Independent ingestion worker] <-->|Claim / lease / publication| DB + W <-->|Originals / extraction artifacts| FS[(Immutable file storage)] + W <-->|Vision transcription| V[OpenRouter / Gemini Flash] + API -->|Query vector| E[Local Ollama / bge-m3] + W -.->|Document vectors; shared embedding service| E ``` ### 02-ingestion