It looks like you’re getting that error because of a version mismatch or incorrect import. Try upgrading llama_index
:
bash
{pip install llama_index --upgrade}
If that doesn't work, check if the module has changed or been deprecated. You could also try reinstalling it:
{pip uninstall llama_index}
{pip install llama_index}