GPTVectorStoreIndex
class. However, I keep getting an error when I try to reload my index:gpt_index = GPTVectorStoreIndex(documents, llm_predictor=llm_predictor) gpt_index.save_to_disk('./indices/gpt_index.json') # Works great! Saved to disk loaded_index = GPTVectorStoreIndex.load_from_disk('./indices/gpt_index.json')
TypeError: __init__() got an unexpected keyword argument 'simple_vector_store_data_dict'
save_path
but I could be mistaken!loaded_index = GPTSimpleVectorIndex.load_from_disk('./indices/gpt_index.json', llm_predictor=llm_predictor)
ValueError: doc_type vector_store not found in type_to_struct. Make sure that it was registered in the index registry.
"__type__": "vector_store"}
at the end of an embedding trail, but maybe I should save the initial index in a specific way to ensure it can read the type_to_struct
?