I’m building an application that allows users to extract information from their documents using Gemini. When a user tries to extract something like a social security number from a document, the API responds with the following stop reason from https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-attributes#unsafe_responses:
SPII: The token generation was stopped because the response was flagged for Sensitive Personally Identifiable Information (SPII) content.
This value is listed as a “Non-configurable safety filter” so it sounds like there’s no way to change it. However, this is a blocker for my application because it does not make sense to prevent a user from extracting data from their own documents.
I already filled out the Gemini safety filter allowlist from https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-attributes#how_to_configure_the_safety_filter to resolve other issues related to safety filtering, but I don’t think this will fix the SPII issue.
Are there plans to allow developers to disable the SPII filter? Noting that OpenAI has no problem with extracting social security numbers from documents.