spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Support of Guardrails in Spring AI

Open bntv-config opened this issue 1 year ago • 0 comments

Can we implement some guardrails features in built in Spring AI so we no need to fine tune the prompt:

Gurard rails features:

  • Should not be baiosed when ansering questions
  • Does not answer political questions
  • Avoid content related to violence, hate speech, self-harm, or illegal activities.
  • Do not share or ask for personal identifiable information (PII).
  • Use respectful and professional language.
  • Ensure responses do not cause harm or distress to users.

This should also be configurable , like developer can add custom also.

bntv-config avatar Jul 19 '24 16:07 bntv-config