Skip to content

Viewing LlamaIndex Output #14223

Answered by dosubot bot
mraguth asked this question in Q&A
Jun 18, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

LlamaIndex provides several ways to view and visualize output, both in the console and on a webpage.

Console Logging

You can enable basic logging in your application with the following code:

import logging
import sys

logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))

Callback Handler

LlamaIndex offers a callback manager to help debug, track, and trace the inner workings of the library. You can set a simple callback handler like this:

import llama_index.core

llama_index.core.set_global_handler("simple")

Observability Tools

LlamaIndex supports one-click integration with various observability tools, allowing…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mraguth
Comment options

Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant