Skip to content

3. Data Flow Diagram

Muhammad Waleed Hassan edited this page Feb 10, 2025 · 1 revision

Data Flow Diagram

flowchart TD
    A["User Input (Text or Voice)"] --> B{"Input Type?"}
    B -- "Text" --> C["Process Text Endpoint"]
    B -- "Voice" --> D["Process Voice Endpoint"]
    D --> E["Google Cloud Speech-to-Text"]
    E --> F["Transcribed Text"]
    C --> F
    F --> G["Embedding Generation"]
    G --> H["BigQuery Context Retrieval"]
    H --> I["Construct Prompt with Context"]
    I --> J["Generative AI Model"]
    J --> K["Generated Response"]
    K --> L["Google Cloud Text-to-Speech"]
    L --> M["Audio Response (base64)"]
    M --> N["Return JSON Response"]
Loading
Clone this wiki locally