Find answers from the community

Updated 3 months ago

hi there, a quick question - I'm

hi there, a quick question - I'm struggling with the Query Pipeline Tutorial on 0.10.12.
I keep getting AttributeError: module 'llama_index.core' has no attribute 'set_global_handler' and cannot resolve it.
I've reinstalled llama-index but still get it... any suggestions?
If I remove the phoenix lines, I get: ImportError: cannot import name 'Settings' from 'llama_index.core' (unknown location)
Does anyone know whats wrong here?
W
c
3 comments
How are you importing set_global_handler ?


Try completely removing:
Plain Text
pip uninstall llama-index

pip install llama-index --upgrade --no-cache-dir --force-reinstall


Now for setting global handler:
Plain Text
from llama_index.core import set_global_handler
set_global_handler(eval_mode_here)
@WhiteFang_Jr the force-reinstall seems to solve it!
As for setting it, I just followed: https://docs.llamaindex.ai/en/stable/examples/pipeline/query_pipeline.html

I guess it just needed a clean install. Thank you very much!
Add a reply
Sign up and join the conversation on Discord