-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Langfuse makes haystack slow #1315
Comments
After more research, I found that setting HAYSTACK_LANGFUSE_ENFORCE_FLUSH to false solve the problem. |
Hello @mydsoElliott thanks for reaching out. Just to better understand how we could improve documentation: Have you found the documentation page about Haystack's langfuse integration? https://docs.haystack.deepset.ai/reference/integrations-langfuse |
Hello, indeed I never found this by myself, so It's a bit my bad. But even if I did, I don't think I would have known that it was making the pipeline that much slower. May be a better way would be to mention it in the langfuse connector. as I feel like it's something you're more likely to see. Mentionning speed could also be nice. Also having it on by default without a warning nor being in debug mode can make it hard to realize it if you don't specifically look for it. |
Describe the bug
Langfuse make haystack slow : for a 13 second pipeline, it takes extra 6 seconds when running with langfuse tracer for a total of 19s.
After profiling my pipeline, it looks like uploading to langfuse take time, as if it was waiting for it to be uploaded to run the next component.
I'm using langfuse self hosted
Describe your environment (please complete the following information):
The text was updated successfully, but these errors were encountered: