prompts = ({
naive: (old_annotated_file, updated_file) => `Consider the task of annotation updating. Look at the following old annotated file, then copy the annotations to the updated version of the file below it. In this case, annotations are represented by numbered opening and closing tags, like <1> </1>. Your response should be only the updated file with annotations transferred to analogous positions.
OLD ANNOTATED FILE:
${old_annotated_file}
END OLD ANNOTATED FILE
UPDATED FILE:
${updated_file}
END UPDATED FILE
Write your answer below. Again, your response should be only the updated file with annotations transferred to analogous positions. Do not include "END UPDATED FILE" or similar in your response.
`,
highlight: (old_annotated_file, updated_file) => `Consider the task of annotation updating.
You will be shown an old annotated file with a section highlighted and a newer version of the file without the highlight applied. Your task will be to copy the highlight to the updated version of the file. In this case, highlights are represented by numbered opening and closing tags, like <1> </1>. Your response should be only the updated file with highlights included.
OLD ANNOTATED FILE:
${old_annotated_file}
END OLD ANNOTATED FILE
UPDATED FILE:
${updated_file}
END UPDATED FILE
Write your answer below. Again, your response should be only the updated file with highlights included. Do not include "END UPDATED FILE" or similar in your response.
`,
highlight2: (old_annotated_file, updated_file) => `Consider the task of annotation updating.
You will be shown an old annotated file with a section highlighted and a newer version of the file without the highlight applied. Your task will be to copy the highlight to the updated version of the file. In this case, highlights are represented by numbered opening and closing tags, like <1> </1>. Your response should be only the updated file with highlights included.
If the file has been edited, the highlight must move to continue to surround the section it reasonably applies to.
OLD ANNOTATED FILE:
${old_annotated_file}
END OLD ANNOTATED FILE
UPDATED FILE:
${updated_file}
END UPDATED FILE
Write your answer below. Again, your response should be only the updated file with highlights included. Do not include "END UPDATED FILE" or similar in your response.
`,
by_example: (old_annotated_file, updated_file) => `Given an old file with some tags marking a highlight, when the file is updated, we can copy out a new properly tagged file like so:
<OLD TAGGED>
<1>Lorem ipsum dolor sit amet</1>, consectetur adipiscing elit, sed...
</OLD TAGGED>
<NEW UNTAGGED>
Lom *ipsum* dolr sitAMETerf0nsec-tetur adipiscing elit, sed...
</NEW UNTAGGED>
<NEW TAGGED>
<1>Lom *ipsum* dolr sitAMET</1>erf0nsec-tetur adipiscing elit, sed...
</NEW TAGGED>
Now, re-tag the following file:
<OLD TAGGED>
${old_annotated_file}
</OLD TAGGED>
<NEW UNTAGGED>
${updated_file}
</NEW UNTAGGED>
Write your answer below. Again, your response should be only the updated file with highlight tags included. Do not include <NEW TAGGED> or </NEW TAGGED> in your response.
`,
highlight_star: (old_annotated_file, updated_file) => `Consider the task of annotation updating.
You will be shown an old annotated file with a section highlighted and a newer version of the file without the highlight applied. Your task will be to copy the highlight to the updated version of the file. In this case, highlights are represented by 2 star characters, like so: ★highlighted text★. Your response should be only the updated file with highlights included.
OLD ANNOTATED FILE:
${old_annotated_file}
END OLD ANNOTATED FILE
UPDATED FILE:
${updated_file}
END UPDATED FILE
Write your answer below. Again, your response should be only the updated file with highlights included. Do not include "END UPDATED FILE" or similar in your response. Your response should be a character-for-character match with the UPDATED FILE, except for the additional 2 characters for highlights.
`
})