LLM Resources

Libraries

Evaluation

Prompt engineering

Prompt management

Templates

Prompt structure

  • Role with task context
  • Tone context
  • Background data to process
  • Detailed task description and rules
  • Examples (one-/few-shot prompting)
  • Immediate data to process (short/long history)
  • Thinking step-step / reason
  • Output formatting (JSON, XML…)

Books

  • Daniel Jurafsky & James H. Martin. Speech and Language Processing