Glossary · AI/ML
Prompt
Also known as: prompt engineering, system prompt, user prompt
The input text sent to an LLM, including instructions, context, examples, and the question, that steers what the model produces.
Parts of a prompt
- System prompt: role, rules, and output format, set by the developer.
- Context: documents, retrieved chunks, or conversation history.
- Examples: a few input → output pairs (“few-shot”).
- User message: the actual request.
Example
System: You are a senior Java reviewer. Reply in at most 5 bullet points.
User: Review this method for thread-safety issues: ...
Tips
- Be specific about the format you want (JSON, bullets, length).
- Put long reference material before the question.
- Every word costs tokens; remove what the model does not need.