# aswina1636/mimo-rl-curated architecture

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

- Interactive diagram: https://gitdiagram.com/aswina1636/mimo-rl-curated
- Repository: https://github.com/aswina1636/mimo-rl-curated

## Overview

MiMo-RL Curated prepares Xiaomi’s code-task subset into an enriched dataset and serves it for exploration. The main workflow runs from source-data preparation through profiling, scoring, semantic enrichment, issue-type prediction, and release assembly; users then explore statistics, filtered tasks, details, or similar-task results through the API and dashboard. Supporting branches cover cluster naming and review, manual labeling, and the balanced lite release. Processing links rely on README descriptions; runtime API links are visible in main.py. Other script internals were not sampled.

Main entry points: [`main.py`](https://github.com/aswina1636/mimo-rl-curated/blob/main/main.py) (Dataset API), [`embed.py`](https://github.com/aswina1636/mimo-rl-curated/blob/main/embed.py) (Task embeddings), [`export_release.py`](https://github.com/aswina1636/mimo-rl-curated/blob/main/export_release.py) (Validate and assemble), [`dashboard.html`](https://github.com/aswina1636/mimo-rl-curated/blob/main/dashboard.html) (Interactive dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_processing["Dataset processing"]
  node_download["Download subset"]
  node_flatten["Flatten and profile<br/>[flatten.py]"]
  node_difficulty["Difficulty scoring<br/>[difficulty.py]"]
  node_finalize["Finalize metadata<br/>[finalize.py]"]
end

subgraph group_enrichment["Semantic enrichment"]
  node_embedding["Task embeddings<br/>[embed.py]"]
  node_embedding_v2["Alternate embeddings<br/>[embed_v2.py]"]
  node_cluster_report["Cluster review<br/>[cluster_report.py]"]
  node_cluster_names["Name clusters<br/>[rename_clusters.py]"]
end

subgraph group_release["Labels and releases"]
  node_label_helper["Manual issue labels<br/>[label_helper.py]"]
  node_classifier["Issue classifier"]
  node_release_builder["Validate and assemble<br/>[export_release.py]"]
  node_lite_split["Balanced lite split<br/>[make_lite.py]"]
end

subgraph group_exploration["API and exploration"]
  node_api["Dataset API<br/>[main.py]"]
  node_dashboard["Interactive dashboard<br/>[dashboard.html]"]
end

node_dataset_source[("Source code subset")]
node_curated_data[("Curated task data")]
node_embedding_data[("Embedding vectors")]
node_explorer(("Dataset explorer"))
node_embedding_model["Text embedding model"]
node_release_dataset[("Hugging Face release")]

node_dataset_source -->|"downloads"| node_download
node_download -->|"prepares input"| node_flatten
node_flatten -->|"profiles first"| node_difficulty
node_difficulty -->|"scores before embedding"| node_embedding
node_embedding -->|"inspects clusters"| node_cluster_report
node_embedding -->|"names clusters"| node_cluster_names
node_embedding_v2 -->|"encodes with"| node_embedding_model
node_embedding -->|"adds cluster metadata"| node_finalize
node_label_helper -->|"prepares labels"| node_classifier
node_classifier -->|"adds predictions"| node_release_builder
node_finalize -->|"assembles release"| node_release_builder
node_release_builder -->|"exports files"| node_release_dataset
node_curated_data -->|"samples balanced subset"| node_lite_split
node_curated_data -->|"loads task table"| node_api
node_embedding_data -->|"loads vectors"| node_api
node_api -->|"serves dashboard"| node_dashboard
node_explorer -->|"explores tasks"| node_dashboard
node_dashboard -->|"requests data"| node_api
node_api -->|"embeds new text"| node_embedding_model

click node_download "https://github.com/aswina1636/mimo-rl-curated/blob/main/testing_and_download.py"
click node_flatten "https://github.com/aswina1636/mimo-rl-curated/blob/main/flatten.py"
click node_difficulty "https://github.com/aswina1636/mimo-rl-curated/blob/main/difficulty.py"
click node_embedding "https://github.com/aswina1636/mimo-rl-curated/blob/main/embed.py"
click node_embedding_v2 "https://github.com/aswina1636/mimo-rl-curated/blob/main/embed_v2.py"
click node_cluster_report "https://github.com/aswina1636/mimo-rl-curated/blob/main/cluster_report.py"
click node_cluster_names "https://github.com/aswina1636/mimo-rl-curated/blob/main/rename_clusters.py"
click node_finalize "https://github.com/aswina1636/mimo-rl-curated/blob/main/finalize.py"
click node_label_helper "https://github.com/aswina1636/mimo-rl-curated/blob/main/label_helper.py"
click node_classifier "https://github.com/aswina1636/mimo-rl-curated/blob/main/train_classifier3.py"
click node_release_builder "https://github.com/aswina1636/mimo-rl-curated/blob/main/export_release.py"
click node_lite_split "https://github.com/aswina1636/mimo-rl-curated/blob/main/make_lite.py"
click node_api "https://github.com/aswina1636/mimo-rl-curated/blob/main/main.py"
click node_dashboard "https://github.com/aswina1636/mimo-rl-curated/blob/main/dashboard.html"

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_download,node_flatten,node_difficulty,node_finalize toneBlue
class node_embedding,node_embedding_v2,node_cluster_report,node_cluster_names,node_dataset_source,node_curated_data,node_embedding_data,node_release_dataset toneAmber
class node_label_helper,node_classifier,node_release_builder,node_lite_split toneMint
class node_api,node_dashboard toneRose
class node_explorer,node_embedding_model toneIndigo
```

## Components

### Dataset processing

- [Download subset](https://github.com/aswina1636/mimo-rl-curated/blob/main/testing_and_download.py): `testing_and_download.py`
- [Flatten and profile](https://github.com/aswina1636/mimo-rl-curated/blob/main/flatten.py): `flatten.py`
- [Difficulty scoring](https://github.com/aswina1636/mimo-rl-curated/blob/main/difficulty.py): `difficulty.py`
- [Finalize metadata](https://github.com/aswina1636/mimo-rl-curated/blob/main/finalize.py): `finalize.py`

### Semantic enrichment

- [Task embeddings](https://github.com/aswina1636/mimo-rl-curated/blob/main/embed.py): `embed.py`
- [Alternate embeddings](https://github.com/aswina1636/mimo-rl-curated/blob/main/embed_v2.py): `embed_v2.py`
- [Cluster review](https://github.com/aswina1636/mimo-rl-curated/blob/main/cluster_report.py): `cluster_report.py`
- [Name clusters](https://github.com/aswina1636/mimo-rl-curated/blob/main/rename_clusters.py): `rename_clusters.py`

### Labels and releases

- [Manual issue labels](https://github.com/aswina1636/mimo-rl-curated/blob/main/label_helper.py): `label_helper.py`
- [Issue classifier](https://github.com/aswina1636/mimo-rl-curated/blob/main/train_classifier3.py): `train_classifier3.py`
- [Validate and assemble](https://github.com/aswina1636/mimo-rl-curated/blob/main/export_release.py): `export_release.py`
- [Balanced lite split](https://github.com/aswina1636/mimo-rl-curated/blob/main/make_lite.py): `make_lite.py`

### API and exploration

- [Dataset API](https://github.com/aswina1636/mimo-rl-curated/blob/main/main.py): `main.py`
- [Interactive dashboard](https://github.com/aswina1636/mimo-rl-curated/blob/main/dashboard.html): `dashboard.html`

### Other components

- **Source code subset**
- **Curated task data**
- **Embedding vectors**
- **Dataset explorer**
- **Text embedding model**
- **Hugging Face release**

## Connections

- Source code subset → Download subset: downloads (evidence: `README.md`)
- Download subset → Flatten and profile: prepares input (evidence: `README.md`)
- Flatten and profile → Difficulty scoring: profiles first (evidence: `README.md`)
- Difficulty scoring → Task embeddings: scores before embedding (evidence: `README.md`)
- Task embeddings → Cluster review: inspects clusters (evidence: `cluster_report.py`)
- Task embeddings → Name clusters: names clusters (evidence: `README.md`)
- Alternate embeddings → Text embedding model: encodes with (evidence: `embed_v2.py`)
- Task embeddings → Finalize metadata: adds cluster metadata (evidence: `finalize.py`)
- Manual issue labels → Issue classifier: prepares labels (evidence: `README.md`)
- Issue classifier → Validate and assemble: adds predictions (evidence: `README.md`)
- Finalize metadata → Validate and assemble: assembles release (evidence: `README.md`)
- Validate and assemble → Hugging Face release: exports files (evidence: `README.md`)
- Curated task data → Balanced lite split: samples balanced subset (evidence: `make_lite.py`)
- Curated task data → Dataset API: loads task table (evidence: `main.py`)
- Embedding vectors → Dataset API: loads vectors (evidence: `main.py`)
- Dataset API → Interactive dashboard: serves dashboard (evidence: `main.py`)
- Dataset explorer → Interactive dashboard: explores tasks (evidence: `README.md`)
- Interactive dashboard → Dataset API: requests data (evidence: `README.md`)
- Dataset API → Text embedding model: embeds new text (evidence: `main.py`)
