From 6b9a27dd83864dc5a5abad2cd32f42a910ec3476 Mon Sep 17 00:00:00 2001 From: "Hoong Tee, Yeoh" Date: Thu, 14 Nov 2024 14:05:28 +0800 Subject: [PATCH] DBQnA: Include workflow in README (#956) Signed-off-by: Yeoh, Hoong Tee --- DBQnA/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/DBQnA/README.md b/DBQnA/README.md index 1164d50fb..063475c18 100644 --- a/DBQnA/README.md +++ b/DBQnA/README.md @@ -4,6 +4,48 @@ Experience a revolutionary way to interact with your database using our DBQnA ap --- +```mermaid +flowchart LR + %% Colors %% + classDef blue fill:#ADD8E6,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.7 + classDef orange fill:#FBAA60,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.7 + classDef orchid fill:#DA70D6,stroke:#1E90FF,stroke-width:2px,fill-opacity:0.7 + classDef invisible fill:transparent,stroke:transparent; + style Text2SQL-MegaService stroke:#000000 + + %% Subgraphs %% + subgraph Text2SQL-MegaService["Text-to-SQL MegaService "] + direction LR + LLM([LLM MicroService]):::invisible + end + subgraph UserInterface[" User Interface "] + direction LR + a([User Input Query]):::orchid + UI([UI server
]):::orchid + end + + LLM_gen{{LLM Service
}} + POSTGRES_DB{{POSGRES DATABASE
}} + GW([Text-to-SQL GateWay
]):::orange + + + %% Questions interaction + direction LR + a[User Input Query] --> UI + UI --> GW + GW <==> Text2SQL-MegaService + + + %% Text-to-SQL service flow + direction TB + LLM <-.-> POSTGRES_DB + direction LR + LLM <-.-> LLM_gen + +``` + +--- + ## 🛠️ Key Features ### 💬 SQL Query Generation