brainy/src/neural
David Snelling 8d217f3b84 fix: resolve getRelations() empty array bug and add string ID shorthand
**Problem**: brain.getRelations() returned empty array when called without
parameters, making 524 imported relationships inaccessible for Workshop team.

**Root Cause**: Method only queried storage when `from` or `to` parameters
were provided. Without params, it returned empty array.

**Solution**:
- Add support for "get all" via storage.getVerbs() when no from/to provided
- Add string ID shorthand: getRelations(id) → getRelations({ from: id })
- Default limit: 100 (matching storage layer pattern)
- Production safety: warn for >10k queries without filters
- Fix broken improvedNeuralAPI.ts calls (getVerbsForNoun → getRelations)
- Fix property bugs: verb.target → verb.to, verb.verb → verb.type

**Testing**:
- 14 new integration tests covering all query patterns
- All critical tests passing (25/25)
- Backward compatible - no breaking changes

**Impact**: Resolves Workshop bug where imported relationships were invisible
2025-10-21 13:10:34 -07:00
..
embeddedKeywordEmbeddings.ts feat: Phase 3 - Unified Semantic Type Inference (Nouns + Verbs) 2025-10-16 10:59:26 -07:00
embeddedPatterns.ts refactor: remove deprecated BrainyData class completely 2025-09-30 16:04:00 -07:00
embeddedTypeEmbeddings.ts feat: production-ready value-based temporal field detection 2025-10-16 13:58:57 -07:00
entityExtractionCache.ts feat: add progress tracking, entity caching, and relationship confidence 2025-10-01 15:12:54 -07:00
entityExtractor.ts feat: massive performance improvements for Excel imports with AI extraction 2025-10-13 10:05:58 -07:00
improvedNeuralAPI.ts fix: resolve getRelations() empty array bug and add string ID shorthand 2025-10-21 13:10:34 -07:00
naturalLanguageProcessor.ts perf: pre-compute type embeddings at build time (zero runtime cost) 2025-10-09 18:08:57 -07:00
naturalLanguageProcessorStatic.ts feat: add distributed architecture with sharding and coordination 2025-09-22 15:45:35 -07:00
neuralAPI.ts feat: remove legacy ImportManager, standardize getStats() API 2025-10-09 11:40:31 -07:00
patternLibrary.ts feat: implement incremental sorted indices and Triple Intelligence find() 2025-09-12 12:36:11 -07:00
patterns.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
relationshipConfidence.ts feat: add progress tracking, entity caching, and relationship confidence 2025-10-01 15:12:54 -07:00
staticPatternMatcher.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
types.ts fix: resolve 19 critical test failures for production readiness 2025-10-09 16:58:53 -07:00