Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): truncate embedding tables #7449

Merged
merged 1 commit into from Feb 27, 2024
Merged

Conversation

mertalev
Copy link
Contributor

Description

Re-running smart search or face detection destroys the HNSW index because of the number of dead tuples it creates. Truncating is appropriate here since it also purges dead tuples and indexes. We avoided truncation before because it didn't work on pgvecto.rs 0.1.11, but we can safely do it on 0.2.0 now.

Fixes #7313

How Has This Been Tested?

Tested with running "all" jobs on smart search and face detection, as well as by changing the smart search model.

@alextran1502 alextran1502 merged commit fb18129 into main Feb 27, 2024
25 of 26 checks passed
@alextran1502 alextran1502 deleted the fix/server-truncate branch February 27, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search in 1.95.1 only returns a single result
3 participants