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> |
||
|---|---|---|
| .. | ||
| tests | ||
| api-server-example.ts | ||
| augmentations-zero-config.ts | ||
| bluesky-distributed-setup.js | ||
| complete-import-demo.ts | ||
| demo.ts | ||
| directory-import-with-caching.ts | ||
| import-excel-pdf-csv.ts | ||
| import-with-progress.ts | ||
| instant-fork-usage.ts | ||
| monitor-cache-performance.ts | ||
| quick-import-test.ts | ||
| README.md | ||
| smart-import-example.ts | ||
| test-csv-performance.ts | ||
| test-deduplication.ts | ||
| test-excel-import.ts | ||
| test-excel-performance.ts | ||
| test-pdf-performance.ts | ||
| unified-import-example.ts | ||
Brainy Examples
This directory contains example code and test scripts for Brainy.
Structure
demo.ts- Basic demonstration of Brainy's core featurestests/- Various test scripts demonstrating different aspects of Brainy- Performance tests
- Memory tests
- Storage adapter tests
- API functionality tests
- CLI tests
Running Examples
Basic Demo
npm run build
node dist/examples/demo.js
Test Scripts
The scripts in tests/ are standalone Node.js scripts that can be run directly:
node examples/tests/test-simple.js
node examples/tests/test-core-functionality.js
Note
These are examples and test scripts for reference. For production use, see the main documentation in the project root.