Skip to content

test: approximate PQ search need not return the exact nearest embedding (fixes a flaky assert from #129) - #130

Merged
tae898 merged 1 commit into
mainfrom
fix/approx-test-flaky
Oct 29, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/approx-test-flaky

Conversation

@tae898

@tae898 tae898 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #131

Follow-up to #129. It added assert record.get("embedding") == [1.0, 0.0, 0.0] to test_lsm_vector_search_approximate_persistence, but that test runs a PQ (approximate) search, which does not guarantee the exact nearest vector: the Windows 3.14 leg of #123, re-run on main after #129, returned [0.009999999776482582, 0.10000000149011612, 0.10000000149011612]. #129's own run passed on Windows by chance. The test now asserts the row is a record with a 3-element embedding, plus @rid and distance as before.

🤖 Generated with Claude Code

…t nearest embedding

#129 added `record.get("embedding") == [1.0, 0.0, 0.0]`; PQ search is approximate, and a Windows
leg on #123 returned [0.01, 0.1, 0.1]. The test now checks the row is a record with an embedding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tae898
tae898 merged commit 322be07 into main Oct 29, 2026
36 checks passed
@tae898
tae898 deleted the fix/approx-test-flaky branch October 29, 2026 01:25
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.

Flaky assert in test_lsm_vector_search_approximate_persistence: PQ search need not return the exact nearest embedding

1 participant