_insert_nodes
in https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/indices/property_graph/base.py#L191, and I suppose I could attempt to repliace the embdding section but I was wondering whether there was an expected way to ingest a knowledge graph and have embeddings.embddding
field of the Entity nodes to contain your embedding vectorembeddings = embed_model.get_text_embddding_batch(["text1", "text2", ...])
embeddings = embed_model.get_text_embedding_batch(["entity1", "entity2", ...]) for entity, embedding in zip(entities, embeddings): entity.embedding = embedding