[Glossary](https://vatan.one/glossary)/**Prompt injection**

# What is Prompt injection?

Instructions hidden in retrieved content that the model then follows.

A document, email or web page holds text addressed to the model, not the reader. Retrieved content and user instructions share one context window, so a model may act on it. Mitigated by treating all retrieved content as data, stripping directive text, and never granting an agent authority the requester does not have.

Related

[Guardrail](https://vatan.one/glossary/guardrail)[Agent](https://vatan.one/glossary/agent)

See how this works in practice

The console shows the mechanism rather than describing it.

[Products](https://vatan.one/products)

Source: https://vatan.one/glossary/prompt-injection
