Find answers from the community

Updated 12 months ago

Is it possible to retrieve a list of ind...

At a glance

The community member has added documents to an index and specified custom doc_id for each document. They have the following questions:

a) How to determine if a doc_id already exists within the index?
b) How to get a list of all documents within an index?
c) How to delete a document from the index?

In the comments, another community member mentions finding the documentation for deleting/updating a document, and confirms that update/delete works for doc_id. However, they still cannot determine if a particular doc_id exists in the first place.

There is no explicitly marked answer in the post or comments.

Useful resources
I've added documents to an index, while specifying a custom doc_id for each document
a) how do i determine if a doc_id already exists within the index?
b) How do I get a list of all documents within an index?
c) how do I delete a document from the index?
I've tried looking it up (https://github.com/run-llama/llama_index/issues/3255) but it seems the api has changed and the answers are obsolete
h
2 comments
kk, i think i've found the docs for deleting/updating a document:
https://docs.llamaindex.ai/en/stable/module_guides/indexing/document_management.html
need to test it
I can confirm update/delete works for doc_id. However I can’t yet determine if a particular doc_id exists in the first place.
Add a reply
Sign up and join the conversation on Discord