brainy/scripts
David Snelling da7d2ed29d feat: migrate embeddings to Candle WASM + remove semantic type inference
Major architectural changes:

1. EMBEDDINGS ENGINE (ONNX → Candle WASM):
   - Replace ONNX Runtime with Rust Candle compiled to WASM
   - Embedded model in WASM binary (no external downloads)
   - Quantized Q8 precision with <50MB memory footprint
   - Zero-download, offline-first operation
   - Same embedding quality (all-MiniLM-L6-v2)

2. REMOVE SEMANTIC TYPE INFERENCE:
   - Delete embeddedKeywordEmbeddings.ts (14MB of pre-computed embeddings)
   - Remove typeAwareQueryPlanner.ts and semanticTypeInference.ts
   - Remove VerbExactMatchSignal (uses keyword embeddings)
   - Update SmartRelationshipExtractor to 3 signals (55%/30%/15% weights)

API CHANGES (requires v7.0.0):
- Removed: inferTypes(), inferNouns(), inferVerbs(), inferIntent()
- Removed: getSemanticTypeInference(), SemanticTypeInference class
- Removed: TypeInference, SemanticTypeInferenceOptions types

Users can still use natural language queries in find() - they just
need to specify type explicitly for type-optimized searches.

PACKAGE SIZE IMPACT:
- Compressed: 90.1 MB → 86.2 MB (-4.3%)
- Uncompressed: 114.4 MB → 100.3 MB (-12%)
- ~448K lines of code removed

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 12:52:34 -08:00
..
build-candle-wasm.sh feat: migrate embeddings to Candle WASM + remove semantic type inference 2026-01-06 12:52:34 -08:00
buildEmbeddedPatterns.ts fix: handle potential undefined embedding vectors in buildEmbeddedPatterns 2025-09-29 10:10:00 -07:00
buildTypeEmbeddings.ts feat: Stage 3 CANONICAL taxonomy with 169 types (v5.5.0) 2025-11-06 09:02:23 -08:00
check-patterns.cjs fix: use .cjs extension for check-patterns script 2025-08-27 10:00:56 -07:00
check-type-embeddings.cjs perf: pre-compute type embeddings at build time (zero runtime cost) 2025-10-09 18:08:57 -07:00
create-models-release.sh feat: reliable multi-source model delivery system 2025-08-28 08:45:35 -07:00
diagnose-workshop-issue.ts feat: brain.find() excludes VFS by default (Option 3C) 2025-10-24 11:42:47 -07:00
migrate-to-structured-logger.ts feat: Brainy 3.0 - Triple Intelligence Release 2025-09-15 11:06:16 -07:00
migrate-vfs-storage.ts feat: add ImageHandler with EXIF extraction and comprehensive MIME detection (v5.2.0) 2025-11-03 14:06:17 -08:00
release.sh feat: add --skip-tests flag to release script 2025-10-01 13:51:47 -07:00
setup-dev.sh feat: migrate embeddings to Candle WASM + remove semantic type inference 2026-01-06 12:52:34 -08:00
setup-github-models.sh feat: reliable multi-source model delivery system 2025-08-28 08:45:35 -07:00
test-with-memory.sh 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
update-augmentations-metadata.sh feat: comprehensive metadata namespace architecture and cleanup system 2025-08-27 15:38:48 -07:00