docs(presentation): align embedded architecture source
This commit is contained in:
@@ -67,24 +67,15 @@ conversation و voice session رزرو میشوند و مدل، صدا، تن
|
|||||||
### 01-system
|
### 01-system
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart LR
|
flowchart TB
|
||||||
U[User / Admin] --> UI[Angular frontend]
|
UI[Angular frontend: uploads + voice] <-->|REST / browser WebSocket| API[FastAPI: auth + lifecycle + VoiceRuntime + SearchService]
|
||||||
UI -->|REST + session cookie + CSRF| API[FastAPI API]
|
API <-->|Provider WebSocket| OAI[OpenAI Realtime]
|
||||||
UI <-->|WebSocket: PCM + JSON events| API
|
API <-->|State + eligible retrieval| DB[(PostgreSQL + pgvector)]
|
||||||
API --> AUTH[Authentication / role / organization]
|
W[Independent ingestion worker] <-->|Claim / lease / publication| DB
|
||||||
API -->|Upload: independent document + job| DB[(PostgreSQL + pgvector)]
|
W <-->|Originals / extraction artifacts| FS[(Immutable file storage)]
|
||||||
API --> FS[(Immutable originals / extraction artifacts)]
|
W <-->|Vision transcription| V[OpenRouter / Gemini Flash]
|
||||||
W[Separate ingestion worker] -->|Claim job + lease + heartbeat| DB
|
API -->|Query vector| E[Local Ollama / bge-m3]
|
||||||
W -->|Read original / retain extraction| FS
|
W -.->|Document vectors; shared embedding service| E
|
||||||
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
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 02-ingestion
|
### 02-ingestion
|
||||||
|
|||||||
Reference in New Issue
Block a user