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 last year
0
Follow
Storage
Storage
Inactive
0
Follow
c
cmagorian
last year
Β·
Might be a dumb question, but not entirely sure:
Does using a vector_store persist the index automatically via the StorageContext? In my case, I'm using ChromaDB. Do I need to persist indexes to disk instead?
L
c
8 comments
Share
Open in Discord
L
Logan M
last year
Yea, it is automatic!
You can see the notebook here for a full guide
https://gpt-index.readthedocs.io/en/stable/examples/vector_stores/ChromaIndexDemo.html#basic-example-including-saving-to-disk
c
cmagorian
last year
Whats the right way to create an index from a vector_store instead of from documents?
c
cmagorian
last year
since in a separate process we loaded the documents and saved them automatically to the vector_store
L
Logan M
last year
yea, the notebook has an example of that π
Basically, setup the vector_store object to point to the existing vector store
Then,
index = VectorStoreIndex.from_vector_store(vector_store)
c
cmagorian
last year
ah gotcha, and when we load documents into the vector_store its automatically loaded?
L
Logan M
last year
sorry, what did you mean by that?
c
cmagorian
last year
automatically saved, my apologies
L
Logan M
last year
Yea it is automatically saved when you load documents π
Add a reply
Sign up and join the conversation on Discord
Join on Discord