# Demo Scripts - Quick Reference
AI Model Vault includes interactive demonstration scripts in both PowerShell and Bash.
## đ Available Scripts
### PowerShell (Windows)
```powershell
.\demo.ps1 [options]
```
### Bash (Linux/macOS/WSL)
```bash
./demo.sh [options]
```
## đ Quick Start
### Windows (PowerShell)
```powershell
# Quick 2-minute demo
.\demo.ps1 -Quick
# Full demonstration suite (~10 minutes)
.\demo.ps1 -Full
# Specific feature demos
.\demo.ps1 -HuggingFace
.\demo.ps1 -Security
.\demo.ps1 -Utilities
.\demo.ps1 -RAG
```
### Linux/macOS (Bash)
```bash
# Make executable (first time only)
chmod +x demo.sh
# Quick 2-minute demo
./demo.sh --quick
# Full demonstration suite (~10 minutes)
./demo.sh --full
# Specific feature demos
./demo.sh --huggingface
./demo.sh --security
./demo.sh --utilities
./demo.sh --rag
```
## đ Demo Options
| **Quick** | ~2 min | Basic vault operations (store, retrieve, versions) |
| **Full** | ~10 min | All examples + security audit + tests |
| **HuggingFace** | ~3 min | HuggingFace model integration demo |
| **Security** | ~2 min | Encryption, compliance, audit logging |
| **Utilities** | ~2 min | Model analysis, compression, deduplication |
| **RAG** | ~2 min | Document store, knowledge base, MCP tools |
## đ¯ What Each Demo Shows
### Quick Demo (basic_usage)
```
â Creating and configuring vault
â Unlocking with passphrase
â Storing models with metadata
â Version control (v1, v2, v3)
â Retrieving specific versions
â Lineage tracking
â Vault statistics
â Deleting versions
```
### HuggingFace Demo
```
â Simulating HuggingFace model download
â Storing 10MB model
â Compression (99.6% on synthetic data)
â Creating fine-tuned version
â Creating quantized version
â Version history and lineage tree
â Data integrity verification
â Vault statistics
```
### Security Demo
```
â FIPS 140-3 encryption (AES-256-GCM)
â Argon2id key derivation
â BLAKE3 checksums
â Compliance checks (CMMC, MITRE)
â Audit logging
â Key management
```
### Utilities Demo
```
â Model format detection
â Size and parameter analysis
â Compression analysis
â Deduplication detection
â Archive creation (TAR/ZIP)
â Model export with metadata
â Quantization tracking
```
### RAG Demo
```
â Document store creation
â Knowledge base with chunking
â Semantic search (planned)
â MCP tool integration
â Rule-based systems
â Context retrieval
```
### Full Demo
Runs all of the above plus:
```
â Security audit (cargo audit)
â Complete test suite (37 tests)
â Performance benchmarks
â Comprehensive output
```
## đĄ Example Usage
### First Time Setup
```powershell
# Windows
git clone https://github.com/yourusername/ai-model-vault
cd ai-model-vault
.\demo.ps1 -Quick
```
```bash
# Linux/macOS
git clone https://github.com/yourusername/ai-model-vault
cd ai-model-vault
chmod +x demo.sh
./demo.sh --quick
```
### Running Specific Demos
#### Show HuggingFace Integration
```powershell
# Windows
.\demo.ps1 -HuggingFace
# Linux/macOS
./demo.sh --huggingface
```
#### Verify Security Compliance
```powershell
# Windows
.\demo.ps1 -Security
# Linux/macOS
./demo.sh --security
```
#### Test All Features
```powershell
# Windows (takes ~10 minutes)
.\demo.ps1 -Full
# Linux/macOS
./demo.sh --full
```
## đ¨ Script Features
### Colored Output
- â
Green checkmarks for success
- âšī¸ Blue arrows for information
- â ī¸ Yellow exclamation for warnings
- â Red X for errors
### Automatic Build
- Compiles project in release mode (optimized)
- Checks for Rust/Cargo installation
- Shows build progress
### Error Handling
- Exits on build failures
- Reports test failures
- Validates prerequisites
### Progress Tracking
- Shows current step
- Displays duration
- Provides status updates
## đ Expected Output
### Successful Quick Demo
```
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
â AI Model Vault - Demonstration Script â
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
=== Prerequisites Check ===
â Cargo found: cargo 1.70.0+
=== Building AI Model Vault ===
â Building release version (optimized)...
â Build completed successfully!
=== Running: basic_usage ===
â Basic vault operations: store, retrieve, version control
=== AI Model Vault Basic Example ===
1. Creating vault...
â Vault created at: ~/.local/share/aimodelvault/vaults
2. Unlocking vault...
â Vault unlocked
[... demo output continues ...]
â Example 'basic_usage' completed successfully!
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Demonstration Complete â
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
Next steps:
âĸ Read the documentation: README.md
âĸ View security status: SECURITY_STATUS.md
âĸ Check feature demo: FEATURES_DEMO.md
```
## đ§ Troubleshooting
### "Cargo not found"
**Solution**: Install Rust from https://rustup.rs/
### "Build failed"
**Solutions**:
1. Update Rust: `rustup update`
2. Clean build: `cargo clean && cargo build --release`
3. Check dependencies: `cargo check`
### "Permission denied" (Linux/macOS)
**Solution**: Make script executable: `chmod +x demo.sh`
### "Execution policy" error (Windows)
**Solution**:
```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
```
## đ¯ Performance Notes
### Build Times
- First build: 5-10 minutes (downloads dependencies)
- Subsequent builds: 30-60 seconds (cached)
- Release mode: Optimized for performance
### Demo Durations
- Quick: ~2 minutes
- Individual: ~2-3 minutes each
- Full suite: ~10 minutes
### Disk Space
- Source code: ~5 MB
- Dependencies: ~500 MB (first build)
- Build artifacts: ~100 MB
- Demo outputs: Minimal (cleaned up automatically)
## đ Related Documentation
- **[README.md](https://github.com/nervosys/AIModelVault/blob/master/README.md)** - Complete project documentation
- **[FEATURES_DEMO.md](https://github.com/nervosys/AIModelVault/blob/master/reports/FEATURES_DEMO.md)** - Detailed feature showcase
- **[QUICKSTART.md](QUICKSTART.md)** - 5-minute setup guide
- **[PRODUCTION_READY.md](https://github.com/nervosys/AIModelVault/blob/master/reports/PRODUCTION_READY.md)** - Production deployment guide
- **[examples/](https://github.com/nervosys/AIModelVault/blob/master/examples/)** - Source code for all demos
## đ¤ Contributing
Found an issue with the demo scripts? Please:
1. Check [CONTRIBUTING.md](https://github.com/nervosys/AIModelVault/blob/master/CONTRIBUTING.md) for guidelines
2. Open an issue on GitHub
3. Submit a pull request with improvements
## đ License
Demo scripts are part of AI Model Vault and licensed under AGPL-3.0-or-later.
See [LICENSE](https://github.com/nervosys/AIModelVault/blob/master/LICENSE) for details.
---
**Ready to see AI Model Vault in action?**
```powershell
# Windows
.\demo.ps1 -Quick
# Linux/macOS
./demo.sh --quick
```
**Questions?** Check out the [README.md](https://github.com/nervosys/AIModelVault/blob/master/README.md) or open an issue!