# vizzaq23/sentari_group_task architecture

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

- Interactive diagram: https://gitdiagram.com/vizzaq23/sentari_group_task
- Repository: https://github.com/vizzaq23/sentari_group_task

## Overview

Sentari Group Exercise is a small TypeScript transcript-processing scaffold, not a completed AI pipeline. Its current user-to-result path is invoking the exercise function and receiving a fixed response; the README does not identify a runtime caller. The separate mock-data loader reads the bundled CSV, and an optional helper can request OpenAI embeddings or return a deterministic fallback. The graph reflects the sampled implementation; no production transcript-processing stages are evidenced.

Main entry points: [`template/src/lib/mockData.ts`](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/mockData.ts) (Mock entries), [`template/src/lib/sampleFunction.ts`](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/sampleFunction.ts) (Fixed response), [`template/src/lib/types.ts`](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/types.ts) (Result types), [`template/src/lib/openai.ts`](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/openai.ts) (Embedding helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Exercise caller"))
node_processor["Fixed response<br/>[sampleFunction.ts]"]
node_result_types["Result types<br/>[types.ts]"]
node_mock_loader["Mock entries<br/>[mockData.ts]"]
node_diary_csv["Diary CSV"]
node_embedding_helper["Embedding helper<br/>[openai.ts]"]
node_openai_service{{"OpenAI embeddings"}}

node_caller -.->|"invokes"| node_processor
node_processor -->|"uses types"| node_result_types
node_mock_loader -->|"reads"| node_diary_csv
node_mock_loader -->|"uses types"| node_result_types
node_embedding_helper -->|"requests embeddings"| node_openai_service

click node_processor "https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/sampleFunction.ts"
click node_result_types "https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/types.ts"
click node_mock_loader "https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/mockData.ts"
click node_diary_csv "https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/Expanded_Diary_Entries.csv"
click node_embedding_helper "https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/openai.ts"

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_openai_service toneIndigo
class node_processor,node_result_types,node_mock_loader,node_diary_csv,node_embedding_helper toneTeal
```

## Components

### Other components

- **Exercise caller**
- [Fixed response](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/sampleFunction.ts): `template/src/lib/sampleFunction.ts`
- [Result types](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/types.ts): `template/src/lib/types.ts`
- [Mock entries](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/mockData.ts): `template/src/lib/mockData.ts`
- [Diary CSV](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/Expanded_Diary_Entries.csv): `template/src/lib/Expanded_Diary_Entries.csv`
- [Embedding helper](https://github.com/vizzaq23/sentari_group_task/blob/main/template/src/lib/openai.ts): `template/src/lib/openai.ts`
- **OpenAI embeddings**

## Connections

- Exercise caller → Fixed response: invokes
- Fixed response → Result types: uses types (evidence: `template/src/lib/sampleFunction.ts`)
- Mock entries → Diary CSV: reads (evidence: `template/src/lib/mockData.ts`)
- Mock entries → Result types: uses types (evidence: `template/src/lib/mockData.ts`)
- Embedding helper → OpenAI embeddings: requests embeddings (evidence: `template/src/lib/openai.ts`)
