Commit 85ec13

2025-10-09 07:42:33 Kaushal Lamkhade: Updated images with mermaid
Projects/CommNet.md ..
@@ 82,7 82,86 @@
- **CI/CD**: GITLAB
## System Architecutre Diagram
- ![](./System_Architecture.png)
+ ```mermaid
+ graph TD
+ %% === CHANNELS ===
+ subgraph CH["CHANNELS"]
+ SMS["SMS Adapter"]
+ Widget["Website Widget Adapter"]
+ end
+
+ %% === CALLING ADAPTERS ===
+ subgraph CA["CALLING ADAPTER"]
+ Transcribe["Transcription Service"]
+ Telegram["Telegram Adapter"]
+ WhatsApp["WhatsApp Adapter"]
+ Email["Email Adapter"]
+ end
+
+ %% === INGESTION ROUTING ===
+ subgraph IR["INGESTION ROUTING"]
+ Kafka["Kafka / RabbitMQ"]
+ Router["Channel Router"]
+ Kafka --> Router
+ end
+
+ %% === CORE SERVICES ===
+ subgraph CS["CORE SERVICES"]
+ IM["Intelligent Model"]
+ MCP["MCP Handler"]
+ IM --> MCP
+ end
+
+ %% === AI PROCESSING ===
+ subgraph AI["AI PROCESSING"]
+ subgraph AIH["AI HANDLER"]
+ OpenAI["OpenAI API"]
+ Gemini["Gemini API"]
+ end
+
+ subgraph KB["KNOWLEDGE BASE"]
+ VectorDB["Vector DB"]
+ end
+
+ Memory["Memory (Redis)"]
+ end
+
+ %% === DATA LAYER ===
+ subgraph DL["DATA LAYER"]
+ Postgres["Postgres"]
+ PGVector["pgvector"]
+ end
+
+ %% === FLOWS ===
+ %% Channel and adapters feed into ingestion
+ SMS --> Kafka
+ Widget --> Kafka
+ Transcribe --> Kafka
+ Telegram --> Kafka
+ WhatsApp --> Kafka
+ Email --> Kafka
+
+ %% Routing to orchestration
+ Router --> Orchestration["Orchestration"]
+
+ %% Orchestration connects to AI Processing
+ Orchestration --> OpenAI
+ Orchestration --> Gemini
+ Orchestration --> Memory
+ Orchestration --> VectorDB
+
+ %% Core services interaction
+ Telegram --> IM
+ WhatsApp --> IM
+ Email --> IM
+
+ %% Data layer connections
+ VectorDB --> PGVector
+ PGVector --> Postgres
+ Postgres --> Orchestration
+ Postgres --> VectorDB
+ Memory --> Orchestration
+ ```
## 1. Tech Stack
- **Backend (Node.js)**
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9