Skip to content

Arize phoenix

arize_phoenix_callback_handler #

arize_phoenix_callback_handler(
    **kwargs: Any,
) -> BaseCallbackHandler
Source code in llama_index/callbacks/arize_phoenix/base.py
 6
 7
 8
 9
10
11
12
13
def arize_phoenix_callback_handler(**kwargs: Any) -> BaseCallbackHandler:
    try:
        from phoenix.trace.llama_index import OpenInferenceTraceCallbackHandler
    except ImportError:
        raise ImportError(
            "Please install Arize Phoenix with `pip install -q arize-phoenix`"
        )
    return OpenInferenceTraceCallbackHandler(**kwargs)