Prevent silent O(n) search fallback when sqlite-vec is unavailable #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When
sqlite-vecis unavailable, search silently degrades to a JavaScript full scan over stored JSON embeddings.Why this is a problem:
Observed in:
lib/server/db/index.tslib/server/search.tsvectorSearch()loads candidate rows, parses JSON embeddings, computes cosine distance, sorts, and slices in JS when the extension is unavailableSuggested direction:
Acceptance criteria: