You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I was trying to work this into a Graph LLM Rag. I was thinking on doing some queries based on data type (example: node is a 'person', 'skill', ...).
The idea was to have a person A, identified by node A1.
Person B, identified by Node B1.
Skills like soccer or swimming (S1 and S2).
So, 4 nodes at the graph at this point.
Idea is if person A1 and B2 share the skill, to return those vertex, with the skill connecting them.
But, when I try to run the next query, it is returning an empty list:
MATCH P=(N)-[*1..2]->(D)
WHERE N.type == 'person'
RETURN P
Wasn't this suppose to bring at least the person and the skills from it? I'm assuming the issue is because graph has no 'type' attribute in it.
Main point/question: Is it possible to add additional attributes? What I tried until now it's only setting attributes as [id, text, topic, topicrank]. How can a new attribute, like 'type' be added and persisted?
The text was updated successfully, but these errors were encountered:
andrelima666
changed the title
Graph Rag - Possible for extra attributes?
Graph Rag - Possible to add extra attributes?
Mar 8, 2024
I debated over whether to duplicate the attribute data between databases and graphs. With 7.0, I decided to only sync text data with the graph component.
But I agree that it would be nice to have access to all attributes to handle scenarios such as what is mentioned above. With that, I'll modify the logic to sync attributes.
I'll think about if attribute syncing should be always on, on but able to be disabled or off and able to be enabled.
Hello,
As I was trying to work this into a Graph LLM Rag. I was thinking on doing some queries based on data type (example: node is a 'person', 'skill', ...).
The idea was to have a person A, identified by node A1.
Person B, identified by Node B1.
Skills like soccer or swimming (S1 and S2).
So, 4 nodes at the graph at this point.
Idea is if person A1 and B2 share the skill, to return those vertex, with the skill connecting them.
But, when I try to run the next query, it is returning an empty list:
MATCH P=(N)-[*1..2]->(D)
WHERE N.type == 'person'
RETURN P
Wasn't this suppose to bring at least the person and the skills from it? I'm assuming the issue is because graph has no 'type' attribute in it.
Main point/question: Is it possible to add additional attributes? What I tried until now it's only setting attributes as [id, text, topic, topicrank]. How can a new attribute, like 'type' be added and persisted?
The text was updated successfully, but these errors were encountered: