hey @Logan M
how to get the nodes with embedding back from GPTVectorStoreIndex()
here is the sample code
def store_index(self, documents, payload, service_context):
with self.lock:
parser = service_context.node_parser
nodes = parser.get_nodes_from_documents(documents)
storage_context = self.get_pinecone_storage_context(payload, toquery=False)
storage_context.docstore.add_documents(nodes)
pc_index = GPTVectorStoreIndex(
nodes,
storage_context=storage_context,
service_context=service_context,
)
if "oldDocumentId" in payload:
self.delete_old_vector(payload)
return pc_index
can we extract out nodes with embedding from pc_index?