Find answers from the community

Updated 3 months ago

Everytime i use starge context persist

Everytime i use starge_context.persist() it will erase my current data on /storage and save a new one or it will just "append" the new content?
L
M
5 comments
It will erase/overwrite
so should always load the index first, add your new documents, then save again
If I already have a file on my /storage how can I append my new "index = VectorStoreIndex.from_documents(documents)" to it? I cant figure it out...
Plain Text
index = load_index_from_storage(...)

for doc in documents:
  index.insert(documents)
Add a reply
Sign up and join the conversation on Discord