3 ms·
Because the actual content of $var1 is never seen by the privileged LLM - it only ever handles that exact symbol. More details here: https://simonwillison.net/
by simonw 4y ago
Because the actual content of $var1 is never seen by the privileged LLM - it only ever handles that exact symbol.
More details here: https://simonwillison.net/2023/Apr/25/dual-llm-pattern/ https://simonwillison.net/2023/Apr/25/dual-llm-pattern/
- ttul 4y agoYes indeed. You are essentially using deterministic code to oversee a probabilistic model. Indeed, if you aren’t doing this, your new LLM-dependent application is already susceptible to prompt injection attacks and it’s only a matter of time before someone takes advantage of that weakness.