Automation, Orchestration, and Scripting
An administrator wants an AI assistant to convert free-form sshd log lines into CSV with the columns timestamp,user,source_ip,result. Which prompting technique is MOST likely to produce consistent output across many lines?
Show the answer
Correct answerD. Include a few sample log lines, each paired with the exact CSV row expected, before the lines to convert.
Input/output examples (few-shot prompting) show the model the exact format and field mapping to follow. Supplying only raw lines and relying on 'usual conventions' leaves the column order and values open to interpretation.