liveBook · Manning

Prompt security

As explained in AI Agents and Applications

A safe prompt is an instruction that restricts a language model to supplied information and directs it to acknowledge when an answer is unavailable.

A safe prompt tells a chatbot to use only supplied information and say when it cannot answer. For example, ask how many columns three temples have and instruct it to say so if the text does not provide the total. section 6.1.1

How AI Agents and Applications covers it

How deep it goes
Defines a brief instruction and demonstrates it with a factual question about information missing from the supplied text.
Examples
Uses a question about the total columns in three temples, where the text does not give the answer.
What it assumes
Assumes a supplied text and question, and demonstrates the instruction with a concrete example.
What you can do after
Apply it via an instruction to rely only on supplied information and acknowledge when the answer is unavailable.
How it connects
Connects prompt safety to Q&A chatbots, hallucinations, and retrieval-augmented generation.

Also explained in

Compare how 2 books explain prompt security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents and Applications. The section links point to the parts of the book it draws on.