Hi, I'm not sure I should be asking this here, but here it goes π
I've been trying to follow this graph-RAG example
https://docs.llamaindex.ai/en/stable/examples/cookbooks/GraphRAG_v2/, and I cannot understand why the list of entities I get is empty.
I can see that I get 4 TextNodes/NodeWithScore matches for the first example query. But since the text in them are just the original plain text (no extra formatting), the regex that looks for entities and relationships doesn't get any matches (this one: pattern = r"(\w+(?:\s+\w+)
)\s({[^}]
})\s->\s
([^(]+?)\s({[^}]
})\s->\s
(\w+(?:\s+\w+))").
My question is: should the
nodes_retrieved
be something else than TextNodes/NodeWithScore that just have the original text? If so, how can one control this?
For any reference, I've set up a local instance of Neo4j where I indexed everything, as in the example.
I attached how one of the nodes retrieved looks like.