Gateway guardrail
will assign to Zhihao
We can see from the similar project that the guardrails is outside of the inferencing pipeline.
Currently in OPEA, we have the guardrails microservice inside the pipeline, but we also need the guardrails outside the pipeline, or we say, in the gateway side, which can not only judge the content safety from either the pipeline request or response, but also check the relevance between the pipeline request and response.
We now have the gateway guardrails PoC on Envoy, but we do not have gateway itself, neither in GenAIExamples nor GenAIInfra. We have to decide which gateway should be used, Nginx, Envoy or APISIX, what the API should be, and finally the implementation.
See also https://github.com/opea-project/GenAIInfra/issues/197.