feat: Add reproducible embeddings pipeline and interactive semantic + graph visualization#6
Open
marceloceccon wants to merge 1 commit into
Open
Conversation
…ph viz • Dockerized pipeline (sentence-transformers + UMAP + Chroma) • embeddings/viz.html is now the committed source template • Interactive 3D visualization with hybrid semantic/graph layout • Full provenance manifest and deterministic outputs • Documentation in EMBEDDINGS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a fully reproducible way to generate semantic embeddings for the Marble Skill Taxonomy and an interactive visualization that lets you explore both semantic similarity and the prerequisite graph at the same time.
The original dataset intentionally excluded embeddings (see
manifest.json,README.md, andCHANGELOG.md). This contribution provides a clean, Dockerized pipeline to compute them on demand while preserving the project's philosophy that embeddings are derived artifacts.Motivation
The taxonomy is a rich graph of 1,590 micro-topics connected by 3,221 prerequisite edges. Being able to also view the concepts in semantic space reveals interesting structure:
What’s included
embeddings/— Dockerized pipeline (Dockerfile,generate.py, etc.)all-MiniLM-L6-v2)embeddings/viz.html— the source visualization template (now committed)scripts/generate-viz.sh— one-command entrypointEMBEDDINGS.md— comprehensive documentationREADME.md,.gitignore, andpackage.jsonThe pipeline produces:
generated/topics_with_layout.json(nodes + UMAP coordinates)generated/links.jsongenerated/chroma/(vector DB)generated/viz.html(copied from the source template)generated/generation_manifest.jsonUsage
Then:
Visualization highlights
Reproducibility
random_state=42for UMAPNotes
embeddings/viz.htmlis now the committed source. The pipeline copies it intogenerated/on each run.generated/(correctly gitignored).Testing
Screenshots
See
embeddings/screenshot.png(or run the pipeline locally for the live version).