Skip to content
Discussion options

You must be logged in to vote
  1. Recommended Approaches for Masking PII/PIFI Data
    Langfuse supports masking sensitive data by allowing you to define a custom masking function. This function processes all event inputs and outputs before data is sent to Langfuse. You can use regular expressions for redacting patterns such as emails, phone numbers, or credit card numbers, or leverage external libraries like llm-guard for more advanced anonymization(1)(2)(3).

  2. Built-in Masking Features
    Langfuse provides built-in support for masking via the mask parameter on the client. This feature is available in the Python and JS/TS SDKs. When you initialize the Langfuse client, you can pass a masking function that will be automatically…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@guptadna
Comment options

@clemra
Comment options

Answer selected by guptadna
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants