Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.​EinsteinLlm​Generation​SafetyScore​Output

Safety score information related to the LLM response.
Property Name Type Description Available Version
hateScore Double A higher value means the generated response is more likely to contain text that expresses, incites, or promotes hatred, violence, or severe harm towards the targeted group. Minimum value of 0.0. Maximum value of 1.0. 60.0
physical​Score Double A higher value means the generated response is more likely to contain text with unsafe advice that may harm the user or others physically, or text that promotes, encourages, or depicts acts of self-harm. Minimum value of 0.0. Maximum value of 1.0. 60.0
profanity​Score Double A higher value means the generated response is more likely to contain swear words, curse words, or obscene or profane language. Minimum value of 0.0. Maximum value of 1.0. 60.0
safetyScore Double Overall safety score based on the hateScore, physicalScore, profanityScore, sexualScore, toxicityScore, and violenceScore. A higher value means the generated response is more likely to be safe. Minimum value of 0.0. Maximum value of 1.0. 60.0
sexualScore Double A higher value means the generated response is more likely to contain text meant to arouse sexual excitement or promote sexual services. Minimum value of 0.0. Maximum value of 1.0. 60.0
toxicity​Score Double A higher value means the generated response is more likely to contain text that is rude, disrespectful, or unreasonable. Minimum value of 0.0. Maximum value of 1.0. 60.0
violence​Score Double A higher value means the generated response is more likely to contain text that promotes or glorifies violence or celebrates the suffering or humiliation of others. Minimum value of 0.0. Maximum value of 1.0. 60.0