Skip to content
Snippets Groups Projects
Unverified Commit fc51b9fc authored by Rana Banerjee's avatar Rana Banerjee Committed by GitHub
Browse files

Fix: The _indices of KnowledgeGraphIndex method does not update storage context index (#10687)

parent 326401cc
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,9 @@ class KnowledgeGraphIndex(BaseIndex[KG]):
rel_embedding = self._embed_model.get_text_embedding(triplet_str)
self._index_struct.add_to_embedding_dict(triplet_str, rel_embedding)
# Update the storage context's index_store
self._storage_context.index_store.add_index_struct(self._index_struct)
def upsert_triplet(self, triplet: Tuple[str, str, str]) -> None:
"""Insert triplets.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment