Find answers from the community

Updated last year

Observability

Is it possible to remove handler observability ?
I set with
Plain Text
from llama_index import set_global_handler

# general usage
set_global_handler("<handler_name>", **kwargs)

But how can I do remove global handler?
W
L
3 comments
Would you like to remove a service while the code is running, or does it persist even after you comment it out and re-run the code?
I want to remove a service while the code is running. For now, I'm doing this llama_index.global_handler = None. But is this the right solution?
Found this on Mendable:


Plain Text
from llama_index import set_global_handler

set_global_handler(None)

But I think both are the same. Your way and the above one
Add a reply
Sign up and join the conversation on Discord