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.

Comment From: bntv-config

@markpollack Could you please let me know if this is in Roadmap and by when it will be available ?

Comment From: RRajdev

@markpollack any update on this. It is crucial for our use case.