# gokul-vs-kannan/grow_llm architecture

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

- Interactive diagram: https://gitdiagram.com/gokul-vs-kannan/grow_llm
- Repository: https://github.com/gokul-vs-kannan/grow_llm

## Overview

This repository is a collection of small Python learning examples, not a single application. It demonstrates Ollama chat requests, basic NumPy and pandas operations, and synchronous versus asynchronous tasks. The examples run directly and mostly print results; there is no shared application workflow. The graph reflects the sampled scripts and README only; configuration files and notebooks are present but their behavior is not established by the available excerpts.

Main entry points: [`u_llm1.py`](https://github.com/gokul-vs-kannan/grow_llm/blob/master/u_llm1.py) (Chat helper), [`llm1.py`](https://github.com/gokul-vs-kannan/grow_llm/blob/master/llm1.py) (Single chat example), [`async.py`](https://github.com/gokul-vs-kannan/grow_llm/blob/master/async.py) (Concurrent runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_llm["LLM examples"]
  node_ollama_example["Single chat example<br/>[llm1.py]"]
  node_ask_model["Chat helper<br/>[u_llm1.py]"]
  node_chat_demo["Personality demos<br/>[u_llm1.py]"]
end

subgraph group_data["Data examples"]
  node_array_ops["Array operations<br/>[numpy_sampl1.py]"]
  node_embedding_similarity["Embedding similarity<br/>[text_embedding.py]"]
  node_model_table["Model data table<br/>[pandas_sampl1.py]"]
end

subgraph group_tasks["Task examples"]
  node_sync_tasks["Sequential tasks<br/>[sync.py]"]
  node_async_runner["Concurrent runner<br/>[async.py]"]
  node_async_task["Async task<br/>[async.py]"]
end

node_ollama["Ollama model"]

node_ollama_example -->|"requests chat"| node_ollama
node_chat_demo -->|"calls helper"| node_ask_model
node_ask_model -->|"requests chat"| node_ollama
node_async_runner -->|"gathers tasks"| node_async_task

click node_ollama_example "https://github.com/gokul-vs-kannan/grow_llm/blob/master/llm1.py"
click node_ask_model "https://github.com/gokul-vs-kannan/grow_llm/blob/master/u_llm1.py"
click node_chat_demo "https://github.com/gokul-vs-kannan/grow_llm/blob/master/u_llm1.py"
click node_array_ops "https://github.com/gokul-vs-kannan/grow_llm/blob/master/numpy_sampl1.py"
click node_embedding_similarity "https://github.com/gokul-vs-kannan/grow_llm/blob/master/text_embedding.py"
click node_model_table "https://github.com/gokul-vs-kannan/grow_llm/blob/master/pandas_sampl1.py"
click node_sync_tasks "https://github.com/gokul-vs-kannan/grow_llm/blob/master/sync.py"
click node_async_runner "https://github.com/gokul-vs-kannan/grow_llm/blob/master/async.py"
click node_async_task "https://github.com/gokul-vs-kannan/grow_llm/blob/master/async.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_ollama_example,node_ask_model,node_chat_demo toneBlue
class node_array_ops,node_embedding_similarity,node_model_table toneAmber
class node_sync_tasks,node_async_runner,node_async_task toneMint
class node_ollama toneIndigo
```

## Components

### LLM examples

- [Single chat example](https://github.com/gokul-vs-kannan/grow_llm/blob/master/llm1.py): `llm1.py`
- [Chat helper](https://github.com/gokul-vs-kannan/grow_llm/blob/master/u_llm1.py): `u_llm1.py`
- [Personality demos](https://github.com/gokul-vs-kannan/grow_llm/blob/master/u_llm1.py): `u_llm1.py`

### Data examples

- [Array operations](https://github.com/gokul-vs-kannan/grow_llm/blob/master/numpy_sampl1.py): `numpy_sampl1.py`
- [Embedding similarity](https://github.com/gokul-vs-kannan/grow_llm/blob/master/text_embedding.py): `text_embedding.py`
- [Model data table](https://github.com/gokul-vs-kannan/grow_llm/blob/master/pandas_sampl1.py): `pandas_sampl1.py`

### Task examples

- [Sequential tasks](https://github.com/gokul-vs-kannan/grow_llm/blob/master/sync.py): `sync.py`
- [Concurrent runner](https://github.com/gokul-vs-kannan/grow_llm/blob/master/async.py): `async.py`
- [Async task](https://github.com/gokul-vs-kannan/grow_llm/blob/master/async.py): `async.py`

### Other components

- **Ollama model**

## Connections

- Single chat example → Ollama model: requests chat (evidence: `llm1.py`)
- Personality demos → Chat helper: calls helper (evidence: `u_llm1.py`)
- Chat helper → Ollama model: requests chat (evidence: `u_llm1.py`)
- Concurrent runner → Async task: gathers tasks (evidence: `async.py`)
