Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Prompt engineering is the craft of converting intent into reliable model behavior. Think of it as designing the “program” a language model runs: instructions, constraints, context, and examples—packaged so the model can follow them consistently.
You can treat prompts like a template with stable sections. Use headings or delimiters so the model doesn’t blend your policy, context, and user content.
ROLE
- You are a careful technical writer.
OBJECTIVE
- Convert the notes into a clean lesson.
CONTEXT
- Notes: """ ... """
RULES
- If information is missing, ask 1 clarifying question.
- Do not invent citations.
OUTPUT
- Return Markdown with: title, summary, sections, checklist.Tell the model what it must use and what it must not use. If you have a reference document, instruct “answer only from the reference” and define a fallback behavior when the reference is insufficient.
Use ONLY the reference text below.
If the answer is not in the reference, say: "Not found in reference."
REFERENCE:
""" ... """Provide 1–3 examples of the exact output format. This helps more than long explanations.
Convert each item into JSON.
Example input:
"Fix login bug"
Example output:
{"title":"Fix login bug","type":"bug","priority":"high"}
Now convert:
"Add multimodal lesson"Instead of “think step-by-step”, request a short checklist the model must satisfy. It improves consistency without requiring the model to expose private reasoning.
Before answering, verify:
1) You followed the output schema.
2) You included all required fields.
3) You did not add assumptions.
Then provide the final answer only.When building agentic systems, treat the prompt as an API. Add explicit fields like tools, inputs, constraints, and expected_output to make calls predictable.
Return JSON:
{
"needs_tool": boolean,
"tool_name": "search" | "calculator" | null,
"tool_args": object | null,
"final_answer": string
}You can’t “prompt” your way out of uncertainty, but you can make the model admit it earlier and verify claims more often.
Answer using ONLY the "FACTS" list.
If FACTS is insufficient, respond with:
1) "Insufficient facts."
2) The single most important missing fact you need.
FACTS:
- ...