Find answers from the community

Home
Members
naveedq19
n
naveedq19
Offline, last seen 2 weeks ago
Joined January 10, 2025
Hi, I am trying to use https://docs.llamaindex.ai/en/stable/examples/observability/LlamaDebugHandler/ to print out LLM context and prompts, but I am getting the following. This is with identical code - running from colab.
--------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-25-4da50f59adab> in <cell line: 2>() 1 # Print info on the LLM calls during the summary index query ----> 2 print(llama_debug.get_event_time_info(CBEventType.LLM)) 1 frames /usr/local/lib/python3.10/dist-packages/llama_index/core/callbacks/llama_debug.py in _get_time_stats_from_event_pairs(self, event_pairs) 130 return EventStats( 131 total_secs=total_secs, --> 132 average_secs=total_secs / len(event_pairs), 133 total_count=len(event_pairs), 134 ) ZeroDivisionError: float division by zero
1 comment
W