----------------------
To add another document to an existing index, you can use the
insert
method. Here's an example based on the information provided in the extracts:
cur_index.insert(new_document)
Replace
new_document
with the actual document you want to add to the index. Note that the document should be an instance of the
Document
class.
Keep in mind that the code snippet you provided uses
VectorStoreIndex
, but the extracts mention
GPTVectorStoreIndex
. Make sure you're using the correct index class for your use case.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------