Replies: 1 comment
-
Possibility Have to check. I am thinking having Something like: from larch.railguards import BasicRailGuard
railguard = BasicRailGuard(patterns=[...])
response = SearchEngine(...)(query=..., top_k=...)
response = raiguard(response) Either this pattern or we can pass the railguard object to each SearchEngine constructor and if available, use that. |
Beta Was this translation helpful? Give feedback.
-
LLM responses are sometimes inconsistent and we need a way to railguard those responses to prevent unwanted text from being thrown in response to ensure the responses are appropriate & accurate.
This might involve safeguarding against inappropriate content, user privacy and so on.
Beta Was this translation helpful? Give feedback.
All reactions