Replies: 2 comments 2 replies
-
|
Hi @amaann2, how do you integrate with Langfuse? Are you manually creating all observations using the Python SDK, or are you also using one of our native integrations? cc @inkeep |
Beta Was this translation helpful? Give feedback.
-
|
Based on the available documentation, I don't see a built-in SDK flag or environment variable specifically designed to disable media uploads (PDFs/images/base64) in the Langfuse Python SDK. The Python SDK supports several environment variables for controlling behavior, including The documentation mentions that capturing large inputs/outputs may add overhead and can be disabled per decorator using To help provide a more specific answer, could you clarify:
Understanding your integration method will help determine if there's a workaround using existing SDK features or if this truly requires a new feature addition. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We’re using Langfuse via LangChain callback handlers (langfuse==2.60.8, langfuse.callback.CallbackHandler).
We came across an existing approach that allows disabling media uploads globally (for example, discussed here: https://github.com/orgs/langfuse/discussions/6179). That solution is helpful, but it doesn’t fully cover our use case.
In our setup, media gets uploaded automatically through the LangChain callback flow, and what we’re looking for is a more conditional / selective control:
• For some API flows (e.g. large PDFs), we’d prefer not to upload media
• For other flows (e.g. images for debugging), media uploads are useful
• A single global on/off switch makes it hard to support both cases
We’re hoping there’s a supported way to control media uploads per API flow / per trace / or based on payload size, especially when using LangChain callbacks.
Beta Was this translation helpful? Give feedback.
All reactions