Phase 3: vector search

Exact and IVF vector search return the right neighbors over encrypted chunks.

2 scripts in 2 files. Run: cd Typescript && npm run test:phase3. Source: Typescript/tests/

Phase.3.0.search-exact.test.tsrecall 1.0

4,112 vectors in 17 chunks, 256 dimensions: searchExact matches brute force (recall 1.0).

Phase.3.1.ivf.test.tsrecall@10 1.000

4,096 vectors, 256 dimensions, k=16, nprobe=2: the IVF sidecar persists, visits 2.00 chunks on average and keeps recall@10 at 1.000.

Run with node --expose-gc. Search timings are printed, not asserted.

Last result: 2 of 2 scripts passed. Run summary 2026-10-26