Prompt Engineering for Structured Outputs

Lesson notes for my Prompt Engineering for Structured Outputs course

  • Formatting the input

    This is the input class In the get_input_text method, the input text is formatted to a) split it into sentences b) prepend a sentence number to each sentence This formatting does matter – in fact it matters quite a lot – when you are extracting structured output, since the sentence numbers can be used to…