You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure of any clean way to do this, since the _VertexAICommon interfaces expect res.text, but it would be really cool to expose the safety_attributes that are also returned in the response (link).
With PaLM text-bison@001 as of google-cloud-aiplatform==1.28.0 you get safety scores for free in each prediction along dimensions like illicit drugs, firearms and weapons, death/harm/tragedy, etc.
Google has some built-in settings that aren't very granular (like "more restrictive"/"less restrictive" etc.) but we're doing mental health crisis detection and escalation, and it would be rad to expose these scores for each prediction so we could trigger monitoring of potential self-harm events.
One approach might be to add (res.text, res.safety_attributes) to self.last_k_predictions = []. Then these could still be accessible when the same model is used for multiple chains in a single operation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Not sure of any clean way to do this, since the
_VertexAICommon
interfaces expectres.text
, but it would be really cool to expose thesafety_attributes
that are also returned in the response (link).With PaLM
text-bison@001
as ofgoogle-cloud-aiplatform==1.28.0
you get safety scores for free in each prediction along dimensions likeillicit drugs
,firearms and weapons
,death/harm/tragedy
, etc.Google has some built-in settings that aren't very granular (like "more restrictive"/"less restrictive" etc.) but we're doing mental health crisis detection and escalation, and it would be rad to expose these scores for each prediction so we could trigger monitoring of potential self-harm events.
I see this in
_VertexAICommon
:One approach might be to add
(res.text, res.safety_attributes)
toself.last_k_predictions = []
. Then these could still be accessible when the same model is used for multiple chains in a single operation.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions