brainy/tests
dpsifr 86fb1220b6 **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide**
- **Core**:
  - Added `check-database.js` to verify database status and validate search functionality.
  - Created `fix-dimension-mismatch.js` to handle re-embedding of existing data to resolve dimension mismatch from 3 to 512.
  - Improved test cases by updating vector operations to support 512 dimensions, replacing previously hardcoded dimensions.

- **Migration**:
  - Developed `DIMENSION_MISMATCH_SUMMARY.md`, detailing the root cause, solution, and preventive strategies for dimension mismatch issues.
  - Added `production-migration-guide.md` for structured production migration with detailed steps on re-embedding strategies, batching, and error handling.

- **Tests**:
  - Enhanced test coverage with 512-dimensional vector validation.
  - Introduced helper functions for consistent vector testing behavior and streamlined search test cases.

- **Documentation**:
  - Updated project documentation to highlight the resolution process for dimension mismatches, emphasizing preventive mechanisms such as auto-migration and version tracking.

**Purpose**: Address critical dimension mismatch issues caused by embedding changes, restore functionality, and provide a roadmap for robust prevention strategies and migration processes.
2025-07-25 13:38:56 -07:00
..
mocks feat(tests): add robust mock implementations and expand test coverage for S3 and OPFS storage 2025-07-21 13:42:10 -07:00
core.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
environment.browser.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
environment.node.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
opfs-storage.test.ts **feat(core, storage, tests): enhance verb construction with timestamps and metadata** 2025-07-25 09:44:10 -07:00
package-size-breakdown.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
package-size-limit.test.ts **feat(tests, docs, storage): add statistics storage tests and enhance documentation** 2025-07-24 16:24:02 -07:00
s3-storage.test.ts **feat(core, storage, tests): enhance verb construction with timestamps and metadata** 2025-07-25 09:44:10 -07:00
setup.ts **feat(core): enhance logging, storage options, and testing coverage** 2025-07-17 10:00:28 -07:00
statistics-storage.test.ts **feat(tests, docs, storage): add statistics storage tests and enhance documentation** 2025-07-24 16:24:02 -07:00
statistics.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00
storage-adapters.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
tensorflow-patch.test.ts **test(tests): add comprehensive test suite for Brainy functionality** 2025-07-15 11:56:16 -07:00
vector-operations.test.ts **feat(core, migration, docs): introduce dimension mismatch resolution tools and migration guide** 2025-07-25 13:38:56 -07:00