Skip to content

Drop ivfflat index on contact_embeddings (breaks search on small tables) - #40

Merged
kayoslab merged 1 commit into
mainfrom
fix/drop-ivfflat-index
Jul 9, 2026
Merged

Drop ivfflat index on contact_embeddings (breaks search on small tables)#40
kayoslab merged 1 commit into
mainfrom
fix/drop-ivfflat-index

Conversation

@kayoslab

@kayoslab kayoslab commented Jul 9, 2026

Copy link
Copy Markdown
Owner

An ivfflat index with lists=100 + default probes=1 makes ORDER BY <=> queries scan only 1 of 100 clusters, silently returning zero rows on a small table. For a personal contact store an exact sequential scan is fast and correct. The live index is already dropped; this stops ai:setup from recreating it.

An ivfflat index with lists=100 + default probes=1 makes ORDER BY <=> queries
scan only 1 of 100 clusters, silently returning zero rows on a small table.
For a personal contact store an exact sequential scan is fast and correct.
The live index is already dropped; this stops ai:setup from recreating it.
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cr0ss.org Error Error Jul 9, 2026 11:35am

Request Review

@kayoslab
kayoslab merged commit 1266c91 into main Jul 9, 2026
6 of 7 checks passed
@kayoslab
kayoslab deleted the fix/drop-ivfflat-index branch July 9, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant