Skip to content

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

Closed

Description

@tae898

tests/test_vector.py::TestLSMVectorIndex::test_lsm_vector_search_approximate_persistence asserts record.get("embedding") == [1.0, 0.0, 0.0] (added in #129). The test searches a PQ index, which is approximate, so the first row is not always the exact nearest vector. The Windows/amd64 Python 3.14 leg of #123, re-run on main after #129, failed with:

E   assert [0.009999999776482582, 0.10000000149011612, 0.10000000149011612] == [1.0, 0.0, 0.0]

Every PR can hit this until the assertion is relaxed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions