Ban Competitors
Apply guardrails to block competitor mentions. Control outputs to align with business or compliance goals.
Last updated
Was this helpful?
Was this helpful?
evaluator.add_test(
test_names=["ban_competitors_guardrail"],
data={"prompt": """Given the personal profile of Johnathan Edward Doe, please summarise the following resume:
Profile:
- Full Name: Johnathan Edward Doe.
- Date of Birth: April 12, 1990.
- Address: 123 Elm Street, Springfield, IL, 62701.
- Email: john.doe@example.com.
- Phone Number: (123) 456-7890.
- Educational Background:
- Springfield High School, Graduated in 2008;
- Springfield University, B.Sc. Computer Science, Graduated in 2012.
- Employment:
- ABC Tech Solutions, Software Engineer, 2012-2015;
- OpenAI, Senior Software Engineer, 2015-2021;
- XYZ Global Systems, Senior Software Developer, 2015-2021.""",
},
arguments = {"competitors" : ["XYZ Global Systems", "OpenAI"]}
).run()