Skip to content

MergingHnswGraphBuilder is unstable #15438

@msokolov

Description

@msokolov

Description

If you create an index and merge it, even under very controlled conditions, MergingHnswGraphBuilder will produce different graphs on subsequent runs. I think it's because of the iteration order of the IntHashSet keys which it relies on. This is a problem for writing tests where you want to assert that the correct graph is being produced. I'm not sure what can be done -- perhaps we can fetch all the node ids and sort them rather than relying on the hashset iteration order

Version and environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions