ruvector/docs
Claude fc8e7b425d fix(security): Critical security and performance improvements
## Security Fixes (Critical)

### QGEMM Overflow and Bounds Checking
- src/kernel/qgemm.rs: Changed i32 accumulator to i64 to prevent overflow
- Added runtime bounds checking for all array operations (not just debug_assert)
- Implemented safe indexing with `.get()` fallback for all matrix operations
- Applied proper scale factors (a_scale * b_row_scales) that were previously unused

### FFN Hot Path Allocation
- src/ffn.rs: Removed heap allocation in hot path
- Added activation_i8_buf parameter for pre-allocated buffer
- Maintains zero-allocation guarantee in inference loop

### Saturating Arithmetic
- src/attention/spike_driven.rs: membrane_potential now uses saturating_add
- src/attention/spike_driven.rs: spike_value_contribution uses saturating ops
- Prevents silent integer wraparound in accumulator operations

### Division by Zero Protection
- src/sparse_attention.rs: Guard against seq_len=0 in density calculation

## Benchmark Results

| Benchmark | Time |
|-----------|------|
| spike_attention/standard_no_spikes | 37.3 ns |
| spike_attention/with_active_spikes | 30.6 ns |
| lambda_patterns/stable_lambda | 41.3 ns |
| lambda_patterns/fast_lambda_drop | 2.6 µs |
| policy_comparison/conservative | 29.6 ns |

## Documentation

- Added code review document with detailed findings

All 120+ tests passing.
2025-12-26 16:25:02 +00:00
..
api docs: Add Cypher reference, include Tiny Dancer, fix WASM build 2025-11-26 12:54:04 +00:00
architecture docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
benchmarks feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
cloud-architecture Implement global streaming optimization for 500M concurrent streams 2025-11-20 18:51:26 +00:00
development feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
examples chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
gnn feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
guides feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
hnsw docs: Reorganize documentation and add postgres README 2025-12-02 16:45:44 +00:00
hooks docs: Add generic hooks system implementation plan (#83) 2025-12-25 22:33:28 -05:00
implementation feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
integration feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
optimization chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
plans/subpolynomial-time-mincut chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
postgres Feat/ruvector postgres v2 (#82) 2025-12-25 17:02:55 -05:00
project-phases Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
publishing feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
research chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
sql feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
testing Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
.gitkeep Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
code-review-mincut-gated-transformer.md fix(security): Critical security and performance improvements 2025-12-26 16:25:02 +00:00
INDEX.md chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
README.md Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
REPO_STRUCTURE.md feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00

RuVector Documentation

Complete documentation for RuVector, the high-performance Rust vector database with global scale capabilities.

📚 Documentation Structure

Getting Started

Quick start guides and tutorials for new users:

Architecture & Design

System architecture and design documentation:

API Reference

API documentation for different platforms:

User Guides

Comprehensive user guides:

Performance & Optimization

Performance tuning and benchmarking:

Development

Contributing and development guides:

Testing

Testing documentation and reports:

Project History

Historical project phase documentation:

Implementation Summary


For New Users

  1. Start with Getting Started Guide
  2. Try the Basic Tutorial
  3. Review API Documentation

For Cloud Deployment

  1. Read Architecture Overview
  2. Follow Deployment Guide
  3. Apply Performance Optimizations

For Contributors

  1. Read Contributing Guidelines
  2. Review Technical Plan
  3. Check Migration Guide

For Performance Tuning

  1. Review Optimization Guide
  2. Run Benchmarks
  3. Apply Query Optimizations

📊 Documentation Status

Category Files Status
Getting Started 7 Complete
Architecture 11 Complete
API Reference 2 Complete
User Guides 4 Complete
Optimization 4 Complete
Development 3 Complete
Testing 2 Complete
Project Phases 8 📚 Historical

Total Documentation: 40+ comprehensive documents


🔗 External Resources


Last Updated: 2025-11-20 | Version: 0.1.0 | Status: Production Ready