Curious case of where the first index i created works, both locally and from a webserver, while a newly created index (completely new, not added to) works locally but not from a webserver. Identical code. The Exception thrown in the browser was: Exception: ValueError('doc_type dict not found in type_to_struct. Make sure that it was registered in the index registry.')
@Jim Rutt do you have the same llama index version installed locally and on your server? New versions come out quite quickly and can sometimes break things
"dict" recently got replaced with "simple_dict" in some internal typing for the vector index, you might have to manually edit the index to correct that. (Or create a new one, or ensure both locations have the same version installed)
If you open the json in a text editor, you should see a type key, maybe at the end
That was it! i updated everything to version 0.4.16 of llama-index and everything worked. I must say, such a hard breaking updated is kind of scary. Hopefully you'll keep such things to a minimum going forward.
Glad it worked! The contributors definitely try to minimize breaking changes, but some times they happen
Side note, if you have a requirements.txt, I recommend always putting a version for each library. Then you can upgrade at your own pace and won't get caught by anything