Find answers from the community

Updated 5 months ago

Hi @Logan M, what do the files `index_

At a glance
Hi , what do the files index_store.json, docstore.json, graph_store.json do when I persist the index into my file system? And also what is the purpose of them when I later using the persisted index to query? I don't see so much information contained in them. I'm using PostgreSQL VectorStoreIndex with S3 File System. Thanks in advance.
W
s
3 comments
Yea if you are using third party vector-store then there will not be any or much data in these files as they are stored in the given vector store itself.
Oh I see. But do I need them to load the persisted indices?

Plain Text
storage_context = StorageContext.from_defaults(
    persist_dir=user_s3_folder,
    vector_store=vector_store,
    fs=s3
)
index = load_index_from_storage(
    storage_context
)

I can get rid of the persist_dir and fs param if I only use PGVectorStore, right?
You only need them if you want the docstore to contain the nodes if there is some requirements else no need to persist I guess
Add a reply
Sign up and join the conversation on Discord