Hello, I have a question: I have used
SimpleDirectoryReader
with
load_data()
to store a file, to which I have added some metadata.
I now want to find a way to delete from the
VectorStoreIndex
, the docs that refers to specific values of the metadata I have.
I did not find a way to get the
node_id
/
ref_doc_id
for each "file" I have uploaded, and then apply the
index.delete_ref_doc
(
https://docs.llamaindex.ai/en/latest/module_guides/indexing/document_management/#deletion)
Is it any way to do it without storing the
ref_doc_id
for each uploaded file, in a DB from where to retrieve it once I need to delete?
I might have found this
https://github.com/run-llama/llama_index/discussions/8930 π