Want to see Vectro+ in action? Here's how to run the demo:
./demo_enhanced.shThis script demonstrates:
- β¨ Streaming compression with progress indicators
- ποΈ Quantization (75% size reduction)
- π Semantic search across themed data
- π Web UI with real-time search
- π Beautiful terminal output
Perfect for: Screen recording, presentations, video demos
./demo.shClassic demo with all core features.
# Generate sample data
python3 scripts/generate_themed_embeddings.py --count 1000 --theme products > products.jsonl
# Compress it
cargo run --release -p vectro_cli -- compress products.jsonl products.bin
# Start server
cargo run --release -p vectro_cli -- serve --port 8080
# Open browser to http://localhost:8080See VIDEO_DEMO.md for:
- Complete recording guide (5-7 min demo)
- Script with timestamps
- Visual tips and best practices
- Post-production editing guide
Generate realistic themed embeddings:
# Products (electronics, clothing, food, etc.)
python3 scripts/generate_themed_embeddings.py --count 5000 --dim 384 --theme products > products.jsonl
# Movies (by genre)
python3 scripts/generate_themed_embeddings.py --count 5000 --dim 384 --theme movies > movies.jsonl
# Documents (by topic)
python3 scripts/generate_themed_embeddings.py --count 5000 --dim 384 --theme documents > docs.jsonl
# Mixed dataset
python3 scripts/generate_themed_embeddings.py --count 10000 --dim 768 --theme mixed > mixed.jsonlThe new web interface includes:
- Live embedding count
- Dimension info
- Index status
- Visual query input
- Top-K results
- Similarity scores
- Query time metrics
- Upload embeddings via UI
- Load from file
- REST API for automation
# Health check
curl http://localhost:8080/health
# Get stats
curl http://localhost:8080/api/stats
# Search (POST JSON)
curl -X POST http://localhost:8080/api/search \
-H "Content-Type: application/json" \
-d '{"query": [0.1, 0.2, 0.3, ...], "k": 10}'
# Upload embeddings
curl -X POST http://localhost:8080/api/upload \
-H "Content-Type: application/json" \
-d '{"embeddings": [{"id": "doc1", "vector": [...]}, ...]}'
# Load dataset
curl "http://localhost:8080/api/load?path=./dataset.bin"- Use themed data (products, movies) for semantic meaning
- Show compression ratio with
ls -lh - Highlight query speed (< 1ms)
- Demonstrate the web UI for interactivity
# Increase font size
# Set color scheme to dark theme
# Use larger terminal window (1280x720 or 1920x1080)- Streaming compression - No memory limits
- Quantization - 75% smaller with minimal accuracy loss
- Fast search - Microsecond query times
- Beautiful UI - Production-ready web interface
- Rust - Safety and performance
# 1. Generate data (10 seconds)
python3 scripts/generate_themed_embeddings.py --count 1000 --theme products > data.jsonl
# 2. Compress (15 seconds)
cargo run --release -p vectro_cli -- compress data.jsonl data.bin
cargo run --release -p vectro_cli -- compress data.jsonl data_q.bin --quantize
ls -lh data*.bin # Show size comparison
# 3. Search (30 seconds)
cargo run --release -p vectro_cli -- search "0.1,0.2,..." --top-k 5 --dataset data.bin
# 4. Web UI (2 minutes)
cargo run --release -p vectro_cli -- serve --port 8080
# Open browser, load dataset, run searches- Intro (15s): "Vectro+ - High-performance embedding search in Rust"
- Data (20s): Show generating themed embeddings
- Compression (30s): Regular + quantized, show size reduction
- Search (45s): CLI search with multiple queries
- Web UI (90s): Load data, interactive search, show metrics
- Outro (20s): Key benefits, GitHub link
Total: ~3-4 minutes (perfect for social media, demos, presentations)
Ready to demo? Pick an option above and get started! π
For more details, see:
- README.md - Full documentation
- DEMO.md - Comprehensive examples
- VIDEO_DEMO.md - Complete recording guide