The community member is experiencing issues with the latest version of llama_index, where the GPTSimpleVectorIndex is no longer available and needs to be changed to GPTVectorStoreIndex. Additionally, the way to store and retrieve data has changed, and the community member needs to use the following code: storage_context = StorageContext.from_defaults(persist_dir="./storage"), followed by index = load_index_from_storage(storage_context). The community member also noticed that there are now three JSON files created, rather than just one that can be named. The community member is having trouble with the first index.query and is wondering if they can revert to an older version of llama_index that supports GPTSimpleVectorIndex.
In the comments, a community member suggests specifying the version to install, like pip install llama-index==0.5.27, to avoid the new changes. Another community member recommends reading through the documentation to see what has changed and mentions that the newest version allows naming the folder that saves the JSON files, and that multiple indexes can share the same folder.
Good morning, everyone. I wanted to share that I've come across some issues with my code this morning. Specifically, I've noticed that GPTSimpleVectorIndex is no longer available and needs to be changed to GPTVectorStoreIndex. Additionally, the way to store and retrieve data has changed, and I need to use the following code: storage_context = StorageContext.from_defaults(persist_dir="./storage"), followed by index = load_index_from_storage(storage_context).
I also noticed that there are now three json files that are created, rather than just one that I can name myself. Unfortunately, I'm still having trouble with my first index.query. Is there a way for me to revert back to an older version of llama_index? Additionally, would someone be able to point me in the direction of documentation that outlines the differences and changes needed in the code? Thank you!
is there anyway i can un-install the latest llama_index and revert back to old version, which is supporting GPTSimpleVectorIndex well ?
You can name the folder that saves the jsons in the newest version. I think even multiple indexes can share the same folder, but I need to try that out myself still