Replies: 4 comments 1 reply
-
cc @cescoffier |
Beta Was this translation helpful? Give feedback.
-
@mariofusco added this a few months ago. It should be possible to write an input guardrail that modify the user input. |
Beta Was this translation helpful? Give feedback.
-
I just updated the extension and tried using
Exception:
|
Beta Was this translation helpful? Give feedback.
-
Another update. I was able to work around this issue by setting the following properties:
This is maybe not the best solution but at least an exception won't be thrown and I can handle the input in guardrails. |
Beta Was this translation helpful? Give feedback.
-
Is there currently any way to rewrite the LLM input using this extension? I see that with the OutputGuardrails you can do this by using
successWith()
. However, there doesn't appear to be a similar API for InputGuardrails. Is there another way to do this outside of just sanitizing the input before passing it to the LLM? It's fine if I have to do that.The problem I'm running into is that if I don't sanitize the inputs myself then users can pass in
{}
characters which get interpolated by Qute templates. I'd like to avoid this.Beta Was this translation helpful? Give feedback.
All reactions