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
NOTE: This is with remote inference. I haven't tried with the local model.
fromguardrails.hubimportCompetitorCheckv=CompetitorCheck(
competitors=["Fortran", "Ada", "Pascal"],
on_fail="fix"
)
response=v.validate("The author is Paul Graham. Growing up, he worked on writing short stories and programming, starting with the IBM 1401 in 9th grade using an early version of Fortran. Later, he transitioned to microcomputers like the TRS-80 and began programming more extensively, creating simple games and a word processor.", {})
print(response.fix_value)
The author is Paul Graham.Growing up, he worked on writing short stories and programming, starting with the IBM 1401 in 9th grade using an early version of [COMPETITOR].Later, he transitioned to microcomputers like the TRS-80 and began programming more extensively, creating simple games and a word processor.
The text was updated successfully, but these errors were encountered:
NOTE: This is with remote inference. I haven't tried with the local model.
The text was updated successfully, but these errors were encountered: