deepsense-ai / ragbits

Building blocks for rapid development of GenAI applications
MIT License
7 stars 1 forks source link

enabler: guardrails component design #94

Open akotyla opened 2 weeks ago

akotyla commented 2 weeks ago

We should think about introducing a guardrails component to manage multiple validation checks within the system. We should focus on user input.

All checkers should be stackable and run asynchronously.

Guardrails can include for example: safety checker to filter harmful or inappropriate content and relevance checker to verify if the user’s question aligns with the system's purpose and scope.

https://platform.openai.com/docs/models/moderation https://github.com/unitaryai/detoxify

micpst commented 2 weeks ago

Resources that can be helpful:

micpst commented 2 weeks ago

Maybe we should also consider using an LLM proxy for this - https://docs.litellm.ai/docs/simple_proxy