# vijaygodson/ai-factory-platform architecture

> Architecture diagram of the GitHub repository vijaygodson/ai-factory-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vijaygodson/ai-factory-platform
- Repository: https://github.com/vijaygodson/ai-factory-platform

## Overview

This is a small FastAPI service for summarizing synthetic clinical notes. A caller submits note text to the summarize endpoint, which validates it, requests a two-sentence summary from Azure OpenAI, records latency and token usage, and returns the summary with latency. The same service exposes a health check. The source excerpt shows the application and model-call flow; deployment and infrastructure files are excluded from this runtime view.

Main entry points: [`app/main.py`](https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py) (Summarizer API)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("API caller"))
node_summarizer["Summarizer API<br/>[main.py]"]
node_note_input["Note input<br/>[main.py]"]
node_azure_openai{{"Azure OpenAI"}}
node_telemetry["Call telemetry<br/>[main.py]"]

node_caller -->|"submits note"| node_summarizer
node_summarizer -->|"validates with"| node_note_input
node_summarizer -->|"requests summary"| node_azure_openai
node_summarizer -->|"logs usage"| node_telemetry
node_summarizer -->|"returns summary"| node_caller

click node_summarizer "https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py"
click node_note_input "https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py"
click node_telemetry "https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_caller,node_summarizer toneMint
class node_note_input,node_telemetry toneTeal
class node_azure_openai toneIndigo
```

## Components

### Other components

- **API caller**
- [Summarizer API](https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py): `app/main.py`
- [Note input](https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py): `app/main.py`
- **Azure OpenAI**
- [Call telemetry](https://github.com/vijaygodson/ai-factory-platform/blob/main/app/main.py): `app/main.py`

## Connections

- API caller → Summarizer API: submits note (evidence: `app/main.py`)
- Summarizer API → Note input: validates with (evidence: `app/main.py`)
- Summarizer API → Azure OpenAI: requests summary (evidence: `app/main.py`)
- Summarizer API → Call telemetry: logs usage (evidence: `app/main.py`)
- Summarizer API → API caller: returns summary (evidence: `app/main.py`)
