filename_without_ext = "bla": index = initialize_index(model) filters = MetadataFilters(filters=[ExactMatchFilter(key="doc_id", value=filename_without_ext)]) document_is_not_indexed = len( index.as_retriever(filters=filters, similarity_top_k=1).retrieve("some text"), ) == 0
docstore
available (we save it to blob storage for example), you can do index.docstore.document_exists()
get()
api, but you'd have to use the vector db client directly