972 B
2026-02-23 Session Notes
Vector Search Bug Fix
Implemented a one-line fix for vector search failures in the Signet core library. The issue was in packages/core/src/search.ts line 102, where the vectorSearch() function was wrapping query vectors in Buffer.from(queryVector.buffer) before passing them to the vec0 MATCH operator. Under bun:sqlite, this Buffer-wrapped blob doesn't work correctly—vec0 expects raw Float32Array bytes.
The fix changed the query blob serialization from Buffer.from(queryVector.buffer) to new Float32Array(queryVector), matching how syncVecInsert() in db-helpers.ts line 74 passes vectors to sqlite-vec. This resolves vector search returning empty results despite vectors being present in the vec_embeddings table.
Next: Build with bun run build, publish, and have Buba test recall functionality to verify vector and hybrid search results now show source: "vector" and source: "hybrid" with actual vector scores.