Skip to content

Scoring a trace after the LLM chain returns #1610

Discussion options

You must be logged in to vote

Hi @pooja1423
I had a similar issue in a slightly different context. But in general langfuse executes network requests in the background for better performace without blocking the current execution thread. To ensure that the requests are completely sent before terminating the application it is suggested to add langfuse.flush() at the end of the script or on shutdown. You can read more here
Hope this helps :)

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pooja1423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants