--selector
parameter to run a regex substring operation to remove the input being sent to Mindgard. e.g.
mindgard --selector '$.reply.`sub(/.*inst\]/, )`'
The above will first apply the JSON Path selector to extract the contents of the “reply” field, and then remove all content up to the last instance of the string inst]
.
So
{"reply": "[inst]I am the input provided to the LLM[/inst] I am the response from the LLM"}
will be transformed into
I am the response from the LLM
for analysis by Mindgard.
return_full_text
to false
.