This project documents the process which turns Steam game store descriptions and reviews into a 2D map for exploring games by similarity. The numbered directories implement the pipeline, from collecting Steam data to exporting a static map you can open in a browser.
This project was developed with the assistance of AI. I have written all README documents by hand (unless it explicitly says otherwise at the top of the document). But pretty much all of the Python source is AI generated at this point.
I make no claim that this project follows any best practices. This repository only documents what was tried and decided on for this dataset. It may contain uninformed plans and unconventional approaches.
Each numbered directory in this directory contains a processing step. The final map was created by running each numbered step in order, one after the other.
However, the first step of the pipeline takes a month on its own. That's a long time to wait without getting started on processing the data. So, each stage was made with the idea of incremental refreshing in mind. Each stage will keep track of what pending work it needs to do, and will automatically know when additional work needs to be performed as a result of fetching new data. It won't re-run a processing step unless its source data has been changed.
If you want the details of what each stage does, they all have a README.md of their own which you can look at to find out more. You can also see the Run the processing stages section of this document.
If you want to create a map of your own, the rest of this readme will describe the process you could follow to reproduce the dataset and map I have published above.
Important
This project was developed on Mac hardware using Apple Silicon, and has only been verified on that platform. CUDA implementations have not yet been tested.
Python 3 with uv: The setup scripts use uv to install pinned
dependencies. Each stage has its own .venv and uses a specific Python
interpreter. Check each stage's README for compatibility information.
A Steam API Key: Steam is increasingly locking down their public APIs behind an API key requirement. You will need to create one if you want to fetch data from the Steam Store yourself. You can create one here. This key is used only when required by Steam's API, most requests are done anonymously. Currently, this key is only used in stage 01.
Network access: Required for first-time setup to download dependencies as well as the embedding and segmentation models. Also required to fetch data from Steam.
Each numbered directory contains a setup.sh script which creates a .venv
environment specific to that directory.
For each step you intend to run on the local machine, run its setup script:
# Example:
./01_gamedataset/setup.sh --onlineNot every directory may have a setup script (e.g. stage 12).
--online is required to download packages from the internet. Without it, only
locally cached packages will be used by uv.
The pipeline uses two different SQLite databases:
- Source Database: Holds the raw imported Steam records. This is written to by stages 01 and 02. The other processing pipeline steps treat this database as read-only.
- Working Database: A writable dataset that holds the imported Steam records from the Source dataset alongside processed results. This provides a clean boundary for a single processing configuration. Use a separate working database for each model or pipeline configuration you want to keep independent.
If you don't have a Source database yet, follow the stage 01 README.md to create one. You can then start fetching data from Steam. Which you should probably start doing immediately. It's going to take a few weeks to fetch all of it (while following Steam's rate limiting rules).
To create a Working database from the now-refreshing Source database:
DB=datasets/my-db/working.db
SOURCE=datasets/source/source.db
mkdir -p datasets/my-db
python3 tools/process_dataset.py init --db "$DB"
python3 tools/refresh_source.py --db "$DB" --source-db "$SOURCE"This will update the working database with all new and modified data from the source.
At this point the working database is ready to start processing.
If you're following along and in the middle of your first-time data fetch, you probably won't have very much data to process at all at this point. You may want to wait until more data comes in and do another refresh before starting your first processing cycle.
In the future, you can refresh the working database from its original source by
running the refresh_source script again (--source-db isn't required on
future refresh runs):
DB=datasets/my-db/working.db
python3 tools/refresh_source.py --db "$DB"A few of the processing stages require sizeable model downloads. Now's a good time to start downloading those.
If you're running all stages of the pipeline, you'll need to download models for stages 04 and 06.
Stage 04 requires the segmentation models:
moe: mlx-community/Qwen3.6-35B-A3B-4bit
- Used for initial segmentation attempt.
27b: mlx-community/Qwen3.8-27B-4bit
- Optional
- Used for segmentation resolution in cases where the MoE model returns no segmentation points for a review.
./04_review-segmentation/setup.sh --online 04_review-segmentation/.venv/bin/python tools/prepare_model.py --db "$DB" --model moe # optionally: 04_review-segmentation/.venv/bin/python tools/prepare_model.py --db "$DB" --model 27bStage 06 requires the embedding model:
embedding: Qwen/Qwen3-Embedding-4B./06_embedding/setup.sh --online 06_embedding/.venv/bin/python tools/prepare_model.py --db "$DB" --model embedding
If you want to run stage 03 on a separate machine which won't be performing the full embedding process in stage 06, then you'll still need to download the tokenizer and model config:
./03_review-inputs/setup.sh --online 03_review-inputs/.venv/bin/python tools/prepare_model.py --db "$DB" --model embedding --tokenizer-only
Stages are numbered in gathering/processing sequence order. As a very loose rule, stages over 10 are for 'end-user' consumable output.
Stages 01 and 02 write to the source dataset. Stages 03-08 are for processing the data.
Keep DB pointed at the same working database for each stage. Multiple stages
may be run at the same time.
Each stage keeps track of it's unprocessed work, and will resume pending work when interrupted. Each stage will also automatically detect when data has been refreshed from the source db.
| Stage | What it does |
|---|---|
| 03 - Review inputs | Sanitizes and prepares user reviews. |
| 04 - Review segmentation | Segments reviews into shorter snippets for paging. |
| 05 - Paging | Packs inputs into pages for embedding. |
| 06 - Embeddings | Embeds review pages and store descriptions. |
| 07 - Aggregation | Builds game-level representations from multiple review and store page vectors. |
| 08 - Map export | Turns aggregated vectors into 2d coordinates, and exports the final static map artifact. |
| 12 - Plotly map | Contains the static HTML, CSS, and JS resources required to display the 2D map and load various datasets. |
Refer to each stage's README document for additional details about how to run that stage and what it does and how it does that.
Note
Stage 09 is reserved for additional future processing.
Stages 10 and 11 are from an earlier implementation of this project, documented under the legacy/search/ directory.
There are two separate categories of data fetched from Steam:
- Store Definitions and Descriptions
- User Reviews
These are the downstream stages which will have data to process after a data refresh:
Store Definitions and Descriptions pipeline:
01 -> 02 -> 05 -> 06 -> 07 -> 08
- Stage 01 using arguments
--update-type details- Stage 06 using script
embed_store.py
Review pipeline:
01 -> 03 -> 04 -> 05 -> 06 -> 07 -> 08
- Stage 01 using arguments
--update-type reviews- Stage 06 script using
embed_reviews.py
flowchart LR
01[01_gamedataset]--Store Definitions-->02[02_gametags]
01--User Reviews-->03[03_review-inputs]
03--User Reviews-->04[04_review-segmentation]
04--User Reviews-->05[05_paging]
05--User Reviews-->06[06_embedding]
02--Store Definitions-->05
05--Store Definitions-->06
06--User Reviews-->07[07_aggregation]
06--Store Definitions-->07
07--User Reviews-->08[08_map-export]
07--Store Definitions-->08
These are the configurations/arguments which perform best on my own machine.
(This section is mostly for my own use, anyway.)
DB=datasets/my-db/working.db
BUNDLE_OUTPUT=datasets/my-db/bundles
MAP_OUTPUT=datasets/my-db/map
# Check status of processing pipeline
python3 tools/status.py --db "$DB"
# Start with a working database refresh of the likely-in-progress source refresh:
python3 tools/refresh_source.py --db "$DB"
# or (if venv with tqdm is manually created)
# tools/.venv/bin/python3 tools/refresh_source.py --db "$DB"
# Then, run each affected downstream change (or just run them all):
03_review-inputs/.venv/bin/python 03_review-inputs/run.py --db "$DB"
04_review-segmentation/.venv/bin/python 04_review-segmentation/run.py --db "$DB" --workers 5 --batch-size 4
04_review-segmentation/.venv/bin/python 04_review-segmentation/resolve.py --db "$DB"
05_paging/.venv/bin/python 05_paging/run.py --db "$DB" --workers 2
06_embedding/.venv/bin/python 06_embedding/embed_reviews.py --db "$DB" --batch-size 2 --max-batch-tokens 8192 --memory-gib 64 --worker-recycle-gib 32
06_embedding/.venv/bin/python 06_embedding/embed_store.py --db "$DB" --batch-size 2 --max-batch-tokens 8192 --memory-gib 64 --worker-recycle-gib 32
07_aggregation/.venv/bin/python 07_aggregation/run.py --db "$DB"
08_map-export/.venv/bin/python 08_map-export/project.py --db "$DB" --output "$BUNDLE_OUTPUT" --settings 08_map-export/settings.json
08_map-export/.venv/bin/python 08_map-export/assemble.py --config 08_map-export/assemble.json --output "$MAP_OUTPUT" --deployment-bundle deployment.tar.gz
# Browse the map locally
python3 -m http.server 8000 --directory "$MAP_OUTPUT"
# Or deploy the map to a static file host
scp deployment.tar.gz deploy@example.org:/tmp/steam-map-deployment.tar.gz
rclone copyto deployment.tar.gz example:/tmp/steam-map-deployment.tar.gz
# Then extract files to a destination
ssh deploy@example.org 'mkdir -p /var/www/html/share/steam-map && \
tar -xzf /tmp/steam-map-deployment.tar.gz -C /var/www/html/share/steam-map'The docs directory documents the approaches and techniques considered while developing the map. Each numbered document is a separate investigation that usually comes from a single AI chat message.
This directory starts with investigations done in 2026. It contains information specific to my own home setup, such as using an Apple Silicon processor and MPS for acceleration.
This directory contains artifacts produced from experimenting, but which are not relevant to producing the final map output.
For 2025, this is mainly Jupyter notebooks produced to experiment with the data processing pipeline.
Starting in 2026, this becomes python scripts generated by the AI to explore a particular facet.
This directory contains an old implementation of this repository which involves using cosine similarity to compare text to game store descriptions and game reviews.
This part of the project was archived as part of repository cleanup, because it depends on an old database schema which is no longer used and maintained. It might get revisited in the future, if I can figure out a way to avoid hosting a public embedding model myself.
Run the maintained suite from the repository root with
python3 tools/run_tests.py. It uses the numbered stages' existing virtual
environments and runs the viewer tests with Node. Use --stage 03 to run one
stage or repeat --stage to select several. Experiment-specific test suites
run separately.
