Find answers from the community

Updated 6 months ago

hi, I am using LLamaIndex KnowledgeGraph

hi, I am using LLamaIndex KnowledgeGraph. I have one question about the node relationship. Each node can have the same relationship with multiple nodes. For example, Node 1 have the same relationship with node 2 and node3. When I use some node1.relationships[NodeRelationship.CHILD] =RelatedNodeInfo(node_id='node_2_id'), node1.relationships[NodeRelationship.CHILD] =RelatedNodeInfo(node_id='node_3_id'). The second will replace the previous. How to solve it?
L
r
6 comments
The child node relationships are actually a list
Plain Text
node1.relationships[NodeRelationship.CHILD] = [RelatedNodeInfo(node_id='node_2_id'), RelatedNodeInfo(node_id='node_3_id')]
I am using PropertyGraph and Neo4jGraphStore. I have manaully added the nodes and the relationships. During adding nodes and relationships, I do not use any embedding model. When I use PropertyGraphIndex to load Neo4jGraphStore (from_existing), how to generate the embedding for Neo4jGraphStore using LLM. Because I do not use any LLM when adding nodes and relationships to Neo4jGraphStore.
The LLM doesn't generate embeddings πŸ‘€

How did you add stuff to your index/graph store? In most cases it calculates the embeddings for you (unless you use graph_store.upsert)
hi, because I have the graph data. now I compute embeding by my self as node's embedding.
Add a reply
Sign up and join the conversation on Discord