doc_id
. You can eithe record this ID or set it to something else before inserting. Then you can use index.delete(doc_id)
. This will delete all nodes created from this documentresponse.source_nodes[0].node.ref_doc_id
PineconeVectorStore(..., namespace="my_namespace")
VectorStoreIndex.from_documents()
add to an existing index or is there another function to insert a single document to an existing index? I'm only see tutorials in the context of creating the index from scratch.index = VectorStoreIndex( vector_store=vector_store, storage_context=storage_context, service_context=service_context, ) [index.insert(doc) for doc in documents]
index = VectorStoreIndex( [], storage_context=storage_context, service_context=service_context, ) [index.insert(doc) for doc in documents]
load_index_from_storage()
index = VectorStoreIndex.from_vector_store( vector_store, service_context=service_context, )