Posts

Showing posts from July 9, 2023

Prompt-driven Programming

Fine-tuning prompts for programming tasks involves clearly defining the problem, specifying the input and output format, and sometimes providing examples. Here's how you can do it: examples edge case sequences ambiguities clarify the problem specify inputs specify outputs 1. **Define the Problem Clearly:** Be clear and concise about what you want the program to achieve. The problem statement should be explicit about what the task involves. 2. **Specify the Inputs:** Clearly define what the inputs are and in what format they will be given. This may include the type of the data, the range of possible values, and any other relevant information. 3. **Specify the Outputs:** Similarly, be explicit about what the outputs should be. Describe the format that the output should be in, whether it's a certain data type, a particular data structure, a specific range of values, etc. 4. **Provide Examples:** Provide examples of input and output pairs. This can help to clarify th