Sentiment
Track sentiment in LLM outputs. Use guardrails to manage tone and align with audience expectations.
pos_sentiment = "The book was good."
neutral_sentiment = "The plot was good, but the characters are uncompelling and the dialog is not great."
neg_sentiment = "A really bad, horrible book."
threshold = -0.1Code Example:
Last updated
Was this helpful?

