def get_real_node_id_from_custom_id(custom_id, index):
for node in index.docstore.docs.values():
if node.metadata.get('custom_id') == custom_id:
return node.id_
return None
if my_vector_store == "default":
storage_context = StorageContext.from_defaults()
elif my_vector_store == "chromadb":
chroma_client = chromadb.PersistentClient(path="./storage")
chroma_collection = chroma_client.create_collection("quickstart")
vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
chroma_client
index = VectorStoreIndex(....., store_nodes_override=True)
persist_dir="./storage"
or similar)