5/17
Part 2 of 7 · VersionsLearn and do

Templates fill variables, and fail when one is missing

A template marks the parts that change, and OpenAI's evals docs used double curly braces for them. A run fills them from a row of values. A missing value should stop the run before it costs anything, not send the model a prompt with a hole in it.

print(render(store.store[v2]["content"]["template"], {"question": "Is the 2-person tent waterproof?"}))
Predict

A test row has no value for two variables, tone and question. How many should the error name?

Pick one to see what it prints.
Pick an answer above to see the rest