Sign in Publish

Instructions for AI: prompts, contexts, output schemas and guardrails

Text to give the model to tell it what to do, how to answer and what to refuse.

contextetech

Guardrail: mask U.S. personal data (SSN, phone, card)

Guardrail that masks U.S. personal data in AI assistant replies: SSNs, +1 phone…

InstructionPersonal data 6 days
contextetech

AI context to anonymize personal data in English text

AI context that replaces personal data in English text (names, emails, phones,…

InstructionFew-shot3 example(s) 6 days
contextetech

JSON schema: extract a U.S. invoice

JSON Schema to extract a U.S. invoice with an LLM: vendor, invoice number,…

Instruction9 field(s) 6 days
contextetech

JSON schema: extract a resume

JSON Schema to extract a resume with an LLM: experience, skills, education and…

Instruction7 field(s) 6 days
contextetech

JSON schema: classify a support ticket

JSON Schema to classify a support ticket: category, priority, sentiment,…

Instruction5 field(s) 6 days
contextetech

AI prompt for an Amazon or Shopify product listing

Prompt to write a product listing for Amazon or Shopify in English: title, 5…

Instruction4 variable(s) 6 days

What is an instruction for AI?

An instruction is the text you give the model when you use it, without retraining it: a prompt, a context with examples, a schema that sets the answer format or a guardrail that says what it must refuse. It is the simplest and cheapest way to adapt an AI.