fix: Resolve unresolved imports in ruvector-tiny-dancer-core examples#18
Merged
fix: Resolve unresolved imports in ruvector-tiny-dancer-core examples#18
Conversation
- Export training module and types from lib.rs (TrainingConfig,
TrainingDataset, Trainer, TrainingMetrics, generate_teacher_predictions)
- Export RouterConfig and FastGRNNConfig from lib.rs
- Add From<std::io::Error> impl for TinyDancerError
- Update examples to work without external dependencies:
- admin-server.rs: Simplified to demonstrate health checks and
config inspection without axum/tokio
- full_observability.rs: Uses manual metrics tracking instead of
prometheus crate
- metrics_example.rs: Manual metrics collection and display
- tracing_example.rs: Simple timing-based example without
OpenTelemetry
Fixes #16
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Align with main README.md format and content - Focus on npm/npx usage and JavaScript examples - Add comprehensive feature tables and benchmarks - Include all npm package references (@ruvector/*) - Add TypeScript API reference for main classes - Include use cases (RAG, recommendations, semantic search) - Add architecture diagram and comparison table - Link to GitHub documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Updated README with comprehensive documentation - Published to npm registry 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit addresses GitHub issue #17 by implementing comprehensive forgetting mitigation for continual learning in the GNN module. ## New Features ### Optimizer Implementation (training.rs) - Full Adam optimizer with bias-corrected first and second moments - SGD with momentum support - Lazy initialization of state buffers for efficiency ### Replay Buffer (replay.rs) - Experience replay with reservoir sampling for uniform distribution - Distribution shift detection with statistical tracking - Configurable capacity and batch sampling ### Elastic Weight Consolidation (ewc.rs) - Fisher information diagonal computation - Anchor weight consolidation for task boundaries - EWC penalty and gradient computation ### Learning Rate Scheduling (scheduler.rs) - Constant, StepDecay, Exponential schedulers - CosineAnnealing with warm restarts - WarmupLinear for pre-training warmup - ReduceOnPlateau for adaptive learning ## Deployment Infrastructure ### GitHub Actions Release Pipeline (.github/workflows/release.yml) - 8-stage CI/CD pipeline for complete releases - Validates, builds crates, WASM, and native modules - Publishes to crates.io and npmjs.com - Creates GitHub releases with artifacts ### Deployment Script (scripts/deploy.sh) - Comprehensive deployment orchestration - Version synchronization across Cargo.toml and package.json - Dry-run mode for testing - Cross-platform native builds support ## Test Coverage - 177 tests passing in ruvector-gnn - Comprehensive tests for all new modules - Convergence tests for optimizers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Added 50+ SEO keywords covering emerging trends (agentic-ai, rag, llm-router, langchain, multi-agent, etc.) - Added homepage, bugs, and funding fields to package.json - Comprehensive README update with: - "Why RuVector?" section for agentic AI era - Complete RAG example with OpenAI embeddings - Knowledge graph examples with Cypher queries - GNN self-learning search examples - AI agent routing (Tiny Dancer) examples - Compression tier examples - LangChain/LlamaIndex integration guides - Semantic caching use case - Agentic AI/Multi-agent systems examples - Extended comparison table (added Milvus, Weaviate) - Platform support table (Cloudflare Workers, Vercel Edge, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 tasks
…mitigation Version bump and comprehensive updates: ## GNN Forgetting Mitigation (Issue #17) - Add Adam optimizer with bias-corrected momentum - Add SGD with momentum for convergence - Add Elastic Weight Consolidation (EWC) for catastrophic forgetting prevention - Add ReplayBuffer with reservoir sampling - Add 6 learning rate scheduling strategies - All 177 GNN tests passing ## Security Fixes - Fixed integer overflow vulnerabilities across core crates - Enhanced bounds checking in arena allocations - Improved quantization safety - Added verification tests for security fixes ## Dependency Updates - Updated ruvector-gnn dependency versions in node/wasm crates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Use dynamic version check instead of hardcoded value to avoid test failures when workspace version changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update package.json version to 0.1.15 - Build native binary for linux-x64-gnu - Published base package to npm registry Native binaries for other platforms (darwin, windows, arm64) will be built and published via GitHub Actions CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update package.json version to 0.1.15 - Built native binary for linux-x64-gnu - Published base package to npm registry Multi-platform binaries (darwin, windows, arm64) need to be built via GitHub Actions CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
ruvnet
added a commit
that referenced
this pull request
Feb 20, 2026
fix: Resolve unresolved imports in ruvector-tiny-dancer-core examples
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
TrainingConfig,TrainingDataset,Trainer,TrainingMetrics,generate_teacher_predictions)RouterConfigandFastGRNNConfigfrom lib.rsFrom<std::io::Error>impl forTinyDancerErrorChanges
src/lib.rssrc/error.rsFrom<std::io::Error>implementationexamples/admin-server.rsexamples/full_observability.rsexamples/metrics_example.rsexamples/tracing_example.rsTest plan
cargo build --examplessucceedscargo test -p ruvector-tiny-dancer-corepasses (27 tests)Fixes #16
🤖 Generated with Claude Code