Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
Storage
Storage
Inactive
0
Follow
At a glance
c
cmagorian
2 years ago
Β·
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
2 years ago
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
2 years ago
Whats the right way to create an index from a vector_store instead of from documents?
c
cmagorian
2 years ago
since in a separate process we loaded the documents and saved them automatically to the vector_store
L
Logan M
2 years ago
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
2 years ago
ah gotcha, and when we load documents into the vector_store its automatically loaded?
L
Logan M
2 years ago
sorry, what did you mean by that?
c
cmagorian
2 years ago
automatically saved, my apologies
L
Logan M
2 years ago
Yea it is automatically saved when you load documents π
Add a reply
Sign up and join the conversation on Discord
Join on Discord