How do i list all the documents that have been inserted

I am trying to list all the documents that have been inserted with code like this:
def get_inserted_documents(index):
# Query with an empty embedding to retrieve all documents in the index
res = index.query(, top_k=1000) # Increase ‘top_k’ if you have more than 1000 documents
documents = [item[‘metadata’] for item in res[‘matches’]]
return documents
but i keep getting an error because the query vector is empty
is there another way to do this ?
thanks
ken tyler