Charm Documentation
  • Charm Documentation
  • Templates
    • Introduction to Templates
    • Compose From Scratch
    • Compose With Input Data
    • Summarize With Bullet Points
    • Translate Language
    • Generate Dummy Data
    • Extract
    • Classify Single
    • Classify Multiple
    • Categorize Feedback
    • Transform
    • Prompt Engineering
Powered by GitBook
On this page

Was this helpful?

  1. Templates

Prompt Engineering

The Prompt Engineering template is available for advanced users familiar with GPT-3.

When a charm using this template runs, the prompt will run repeatedly-- once for each output cell.

You can add cell references to refer to input cell ranges; these references will be replaced with the value of the input cell corresponding to the iteration offset.

Tips for using this template:

  • Use commands that are local to a single output cell, not an entire range. For example, a ChatGPT-style prompt like rewrite all of the cells in French will not work, but a prompt like rewrite {{ input_text }} in French will work-- assuming you specify a relevant range for the input_text cell reference.

PreviousTransform

Last updated 2 years ago

Was this helpful?