The community member is using LLamaIndex KnowledgeGraph and has a question about node relationships. They explain that each node can have the same relationship with multiple nodes, but when they try to add a new relationship, it replaces the previous one. Another community member suggests that the child node relationships should be stored as a list instead.
The community member then mentions that they are using PropertyGraph and Neo4jGraphStore, and have manually added nodes and relationships without using any embedding model. They ask how to generate embeddings for the Neo4jGraphStore using LLM, since they did not use any LLM when adding the nodes and relationships.
Another community member responds that the LLM does not generate embeddings, and asks how the community member added the data to the index/graph store. They suggest that in most cases, the LLM calculates the embeddings for you, unless you use graph_store.upsert.
The community member then says that they have the graph data and will compute the embeddings themselves as the node's embedding.
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?
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.