-
I am using local langfuse. It is recording sessions and tockens for this example fine.
However, if I use my own llamaindex, like below, I can not see any traces. Do I need to configure different? please help.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Yes, you need to configure your environment variables to see traces in Langfuse when using your own Here is the relevant code snippet: from llama_index.core import set_global_handler
# Make sure you've installed the 'llama-index-callbacks-langfuse' integration package.
# NOTE: Set your environment variables 'LANGFUSE_SECRET_KEY', 'LANGFUSE_PUBLIC_KEY' and 'LANGFUSE_HOST'
# as shown in your langfuse.com project settings.
set_global_handler("langfuse") Additionally, observability in LlamaIndex is now handled via the For a more detailed setup, including installing necessary packages and configuring the environment, you can refer to the Langfuse Callback Handler documentation [1][2][3]. |
Beta Was this translation helpful? Give feedback.
-
@dosu Langfuse is working with regular index quries. However, it is not producing any trace for RAGStringQueryEngine like example below:
|
Beta Was this translation helpful? Give feedback.
To ensure that
RAGStringQueryEngine
records traces in Langfuse, you need to explicitly connect it to theCallbackManager
. Here is the updated code snippet: