Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Everytime i use starge context persist
Everytime i use starge context persist
Inactive
0
Follow
M
Marco Castellari
last year
Β·
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
Share
Open in Discord
L
Logan M
last year
It will erase/overwrite
L
Logan M
last year
so should always load the index first, add your new documents, then save again
M
Marco Castellari
last year
Nice, thanks!
M
Marco Castellari
last year
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...
L
Logan M
last year
Plain Text
Copy
index = load_index_from_storage(...) for doc in documents: index.insert(documents)
Add a reply
Sign up and join the conversation on Discord
Join on Discord