Find answers from the community

Updated 10 months ago

Traceback (most recent call last):

Traceback (most recent call last):
File "/Users/shreyash/Developer/CaseFlo/utils/todelete.py", line 82, in <module>
index = load_index_from_storage(storage_context, service_context = service_context)
File "/Users/shreyash/Developer/CaseFlo/caseflo/lib/python3.9/site-packages/llama_index/indices/loading.py", line 33, in load_index_from_storage
indices = load_indices_from_storage(storage_context, index_ids=index_ids, **kwargs)
File "/Users/shreyash/Developer/CaseFlo/caseflo/lib/python3.9/site-packages/llama_index/indices/loading.py", line 78, in load_indices_from_storage
index = index_cls(
File "/Users/shreyash/Developer/CaseFlo/caseflo/lib/python3.9/site-packages/llama_index/indices/vector_store/base.py", line 53, in init
super().init(
File "/Users/shreyash/Developer/CaseFlo/caseflo/lib/python3.9/site-packages/llama_index/indices/base.py", line 65, in init
self._vector_store = self._storage_context.vector_store
File "/Users/shreyash/Developer/CaseFlo/caseflo/lib/python3.9/site-packages/llama_index/storage/storage_context.py", line 221, in vector_store
return self.vector_stores[DEFAULT_VECTOR_STORE]
KeyError: 'default'
W
1 comment
What version of LlamaIndex are you using?
ALso can you share your code if possible?
Add a reply
Sign up and join the conversation on Discord