Skip to content

Question: About usage of RandomAccessVectorValues in GraphIndexBuilder API #158

Closed

Description

@mdogan

GraphIndexBuilder constructor requires a RandomAccessVectorValues reference and in javadoc it's defined as:

the vectors whose relations are represented by the graph - must provide a different view over those vectors than the one used to add via addGraphNode.

In GraphIndexBuilder.addGraphNode() method, second parameter is again a RandomAccessVectorValues reference. Should this RandomAccessVectorValues instance be different from the one passed in constructor?

addGraphNode() call fails if the newly added node doesn't exist in the constructor RandomAccessVectorValues. In the examples, as far as I see, they are always the same instance.

I didn't exactly understand relation between these two RandomAccessVectorValues instances. Can you please add some explanation and/or docs for this?

Activity

  1. jbellis commented on Nov 28, 2023

    @jbellis
    Contributor

    You're right, this is a clunky design. In the distant past the RAVV was not provided to the constructor, but now that it is, it can be removed from addGraphNode.

  2. mdogan commented on Apr 16, 2024

    @mdogan
    ContributorAuthor

    Fixed in #244

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