I work with UN reports and I have access to restricted Gemini safety filter text settings. I have set the safety settings to BLOCK_NONE. Gemini 1.5 pro still rejects some UN reports for example, a UNICEF report is rejected “block_reason”: “PROHIBITED_CONTENT”
Modified by Moderator
Could you please help? UN reports are dealing with difficult topics and I hope Vertexai / Gemini can help in this field.
vertexai.init(project=config['project_id'], location=config['location'])
model = GenerativeModel("gemini-1.5-pro-001", system_instruction=[system_prompt])
document = Part.from_uri(mime_type="application/pdf", uri=uri)
generation_config = {
"max_output_tokens": 8192,
"temperature": 0,
"top_k": 1.0,
}
safety_settings = {
generative_models.HarmCategory.HARM_CATEGORY_HATE_SPEECH: generative_models.HarmBlockThreshold.BLOCK_NONE,
generative_models.HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: generative_models.HarmBlockThreshold.BLOCK_NONE,
generative_models.HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: generative_models.HarmBlockThreshold.BLOCK_NONE,
generative_models.HarmCategory.HARM_CATEGORY_HARASSMENT: generative_models.HarmBlockThreshold.BLOCK_NONE,
}