Hi @Logan M I'm using SummaryIndex and VectorIndex for the same document and trying to delete the indices from /storage (docstore.json, index_store.json), like this:
index.delete_ref_doc(ref_doc_id=ref_doc_id, delete_from_docstore=True)
The vector indices in db is deleted but
1) The
nodes
in
index_store.json
index_store/data object is empty but the record of the indices still exists. Like this:
{
"index_store/data": {
"vector_store.5aca6f9d-5e21-40db-bc8d-c64d0cb7cb49": {
"__type__": "vector_store",
"__data__": "{\"index_id\": \"vector_store.5aca6f9d-5e21-40db-bc8d-c64d0cb7cb49\", \"summary\": null, \"nodes_dict\": {}, \"doc_id_dict\": {}, \"embeddings_dict\": {}}"
},
"list.5aca6f9d-5e21-40db-bc8d-c64d0cb7cb49": {
"__type__": "list",
"__data__": "{\"index_id\": \"list.5aca6f9d-5e21-40db-bc8d-c64d0cb7cb49\", \"summary\": null, \"nodes\": []}"
},
}
2) The
docstore/data
is still there just the
embedding
is null now but
docstore/metadata
and
docstore/ref_doc_info
are also null.
How can I delete them both? Thank you in advance.