Add Rust optimization examples from squeeze library (HNSW + t-SNE)#7
Open
GeorgePearse wants to merge 3 commits intomainfrom
Open
Add Rust optimization examples from squeeze library (HNSW + t-SNE)#7GeorgePearse wants to merge 3 commits intomainfrom
GeorgePearse wants to merge 3 commits intomainfrom
Conversation
This PR adds two new Genesis optimization examples targeting the squeeze high-performance Rust library (https://github.com/GeorgePearse/squeeze): ## HNSW (Hierarchical Navigable Small World) Search - Target: `search_layer` beam search algorithm - Metric: recall@10 × speed_factor × 100 - Initial experiments show +14% improvement (53.79 → 61.32) - Key optimization: Vec<bool> visited tracking vs HashSet ## t-SNE Gradient Computation - Target: O(n²) gradient computation called 1000× per embedding - Metric: trustworthiness × speed_factor × 100 - Initial experiments show +3.7% improvement (149.50 → 155.08) - Key optimization: blocked loop unrolling with symmetry exploitation ## Files Added - `examples/squeeze_hnsw/` - Standalone HNSW implementation - `examples/squeeze_tsne/` - Standalone t-SNE gradient implementation - `configs/task/squeeze_*.yaml` - Task configurations - `configs/variant/squeeze_*.yaml` - Variant configurations (local + E2B) - `ROADMAP.md` - Comprehensive language support roadmap 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…te E2B SDK usage, and add documentation
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 two new Genesis optimization examples targeting algorithms from the squeeze high-performance Rust library for dimensionality reduction:
Results
HNSW (100 generations, in progress)
t-SNE (50 generations, in progress)
Files Changed
New Examples
examples/squeeze_hnsw/initial.rs- Standalone HNSW implementation with EVOLVE-BLOCK markersexamples/squeeze_hnsw/evaluate.py- Fitness evaluation (recall@10 × speed)examples/squeeze_tsne/initial.rs- Standalone t-SNE gradient implementationexamples/squeeze_tsne/evaluate.py- Fitness evaluation (trustworthiness × speed)New Configs
configs/task/squeeze_hnsw.yaml- Task definition with optimization hintsconfigs/task/squeeze_tsne.yaml- Task definition with optimization hintsconfigs/variant/squeeze_hnsw_example.yaml- Local execution variantconfigs/variant/squeeze_hnsw_e2b.yaml- E2B cloud execution variantconfigs/variant/squeeze_tsne_example.yaml- Local execution variantDocumentation
ROADMAP.md- Language support matrix, execution backends, planned featuresREADME.md- Added roadmap link to docs tableTest plan
🤖 Generated with Claude Code