docs(presentation): align embedded architecture source
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user