How bakedsoups/nextsteamgame works
NextSteamGame builds game metadata and review-derived semantic profiles offline, canonicalizes their tags, and precomputes candidate pools. The live workflow is game search → reference-profile inspection and preference adjustment → retrieval of a saved pool → weighted reranking → recommendations. The graph includes the documented metadata, review/semantics, canonicalization, and retrieval stages plus the runtime stack. Offline links follow README descriptions; sampled source confirms review processing and some runtime module responsibilities, but the frontend request wiring and several pipeline implementations were not inspected.
Main entry points: app.py FastAPI endpoints · retrieval.py Candidate retrieval · pipeline.py Metadata collection · builder.py Profile builder
Components 21
Offline data pipelines
- Metadata collection
db_creation/metadata_pipeline/pipeline.py - Metadata SQLite
db_creation/paths.py - Review semantics
db_creation/noncanon_pipeline/pipeline.py - Profile builder
db_creation/db_builders/initial_noncanon_db/builder.py - Raw profile database
db_creation/paths.py - Tag canonicalization
db_creation/canon_pipeline/runner.py - Final profile assembly
db_creation/final_pipeline/pipeline.py - Canonical profile database
db_creation/paths.py
Candidate retrieval
- Vector indexing
db_creation/chroma_pipeline/pipeline.py - Chroma index
db_creation/paths.py - Candidate precomputation
db_creation/precompute_candidates.py - Candidate pools
backend/pg_store.py
Recommendation service
- FastAPI endpoints
app.py - Candidate retrieval
backend/retrieval.py - Preference reranking
backend/recommender.py - Postgres game store
backend/pg_store.py
User experience
- Recommendation interface
frontend/app/page.tsx - Scored matches
frontend/components/recommendations-panel.tsx
Other components
- Player
- Steam APIs
- SteamSpy
Connections 20
- Steam APIs → Metadata collection: supplies data
- SteamSpy → Metadata collection: supplies data
- Metadata collection → Metadata SQLite: writes metadata
db_creation/metadata_pipeline/pipeline.py - Review semantics → Profile builder: generates profiles
db_creation/noncanon_pipeline/pipeline.py - Profile builder → Raw profile database: stores profiles
db_creation/db_builders/initial_noncanon_db/builder.py - Raw profile database → Tag canonicalization: provides tags
- Tag canonicalization → Final profile assembly: maps tags
- Final profile assembly → Canonical profile database: builds profiles
db_creation/final_pipeline/pipeline.py - Canonical profile database → Vector indexing: provides profiles
- Vector indexing → Chroma index: writes vectors
- Chroma index → Candidate precomputation: retrieves neighbors
- Candidate precomputation → Candidate pools: saves candidate pools
- Player → Recommendation interface: sets preferences
- Recommendation interface → FastAPI endpoints: requests matches
- FastAPI endpoints → Candidate retrieval: loads candidates
app.py - Candidate retrieval → Candidate pools: reads candidate IDs
- Candidate retrieval → Postgres game store: hydrates profiles
- Candidate retrieval → Preference reranking: scores candidates
backend/retrieval.py - FastAPI endpoints → Preference reranking: reranks results
app.py - FastAPI endpoints → Scored matches: returns matches