From 40f978629d0c428c4cae3b0d6714570288089e27 Mon Sep 17 00:00:00 2001
From: Louie Tsai <louie.tsai@intel.com>
Date: Tue, 6 Aug 2024 20:36:51 -0700
Subject: [PATCH] Update README.md

added a micro/megaservice workflow for Doc Sum
---
 DocSum/README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/DocSum/README.md b/DocSum/README.md
index 2372df8fc..8d5b728cd 100644
--- a/DocSum/README.md
+++ b/DocSum/README.md
@@ -92,6 +92,24 @@ Install Helm (version >= 3.15) first. Refer to the [Helm Installation Guide](htt
 
 Refer to the [DocSum helm chart](https://github.com/opea-project/GenAIInfra/tree/main/helm-charts/docsum) for instructions on deploying DocSum into Kubernetes on Xeon & Gaudi.
 
+
+### Workflow of the deployed Document Summarization Service
+The workflow of the Document Summarization Service, from user's input query to the application's output response, is as follows:
+
+```mermaid
+flowchart LR
+    subgraph DocSum
+        direction LR
+        A[User] <--> |Input query| B[DocSum Gateway]
+        B <--> |Post| Megaservice
+        subgraph Megaservice["Megaservice"]
+            direction TB
+            C([ Microservice : llm-docsum-tgi <br>9000]) -. Post .-> D{{TGI Service<br>8008}}
+        end
+        Megaservice --> |Output| E[Response]
+    end
+
+```
 ## Consume Document Summarization Service
 
 Two ways of consuming Document Summarization Service: