Find answers from the community

Updated 5 months ago

Increasing the number of nodes returned by the retriever for a PropertyGraphIndex

At a glance

The community member is asking if there is a way to increase the number of nodes returned by the retriever for a PropertyGraphIndex, as it seems to use a default limit of 30 nodes. Another community member confirms that they are using the VectorContextRetriever, which has a limit of 30 nodes when calling the ._graph_store.get_rel_map method. The community members suggest that this may be a bug or something that was not intended to be configurable, and that a pull request would be needed to expose the ability to configure this parameter.

Hi! Is there a way to increase the number of nodes returned by the retriever for a PropertyGraphIndex? It looks like it uses the default limit of 30 and there is no way to access that parameter.
k
L
4 comments
I'm using the VectorContextRetriever.

In the code it calls ._graph_store.get_rel_map which passes in the path_depth and the nodes to get the rel_map but there is a limit of 30.
Ah i see now -- seems like a bug/something that wasn't opened to configuring
would need a pr to expose configuring that param
I'll make a PR when I have the time. Just wanted to check if I made a mistake, missed something or it was not enabled intentionally.
Add a reply
Sign up and join the conversation on Discord