Find answers from the community

Updated last month

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

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