brainy/src/storage/adapters
David Snelling 6a4d1aeb2b feat: implement HNSW index rebuild and unified index interface
Fixes critical bugs causing data loss after container restarts:
- Bug #1: GraphAdjacencyIndex rebuild now properly called
- Bug #2: Improved early return logic (checks actual storage data)
- Bug #4: HNSW index now has production-grade rebuild mechanism

New features:
- Production-grade HNSW rebuild() with O(N) restoration algorithm
- Unified IIndex interface for consistent lifecycle management
- Parallel index rebuilds (HNSW, Graph, Metadata in parallel)
- HNSW persistence methods across all 5 storage adapters
- Comprehensive integration tests with 9 test scenarios

Performance improvements:
- 20 entities: 8ms rebuild time
- Handles millions of entities via cursor-based pagination
- O(N) restoration vs O(N log N) rebuilding from scratch

All changes are production-ready with no mocks, stubs, or TODOs.
2025-10-10 11:15:17 -07:00
..
baseStorageAdapter.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00
batchS3Operations.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
fileSystemStorage.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00
gcsStorage.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00
memoryStorage.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00
opfsStorage.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00
optimizedS3Search.ts 🧠 Brainy 2.0.0 - Zero-Configuration AI Database with Triple Intelligence™ 2025-08-26 12:32:21 -07:00
s3CompatibleStorage.ts feat: implement HNSW index rebuild and unified index interface 2025-10-10 11:15:17 -07:00