There is both insert() and refresh() functions for all the indexes. Or if you have a small number of documents, you could rebuild it (embeddings are only $0.0004/1k tokens, pretty cheap)
Just need to make sure you keep track of the
doc_id
of each document you plan on updating (since it requires having the same
doc_id
to update properly)
document = Document("my_text")
document.doc_id = "my doc id"
index.insert(document)
...
document = Document("my_new_text")
document.doc_id = "my doc id" # same id, new text
index.refresh([document])