> For the complete documentation index, see [llms.txt](https://docs.usecharm.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usecharm.ai/templates/prompt-engineering.md).

# 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.
