explicitly handle multiple solutions

This commit is contained in:
Rich Jones 2025-02-14 12:07:53 +01:00
parent 5d16a2193c
commit acdc08bf94

View file

@ -53,7 +53,7 @@ class PalindromeDataset(ProceduralDataset):
palindrome = self._assemble_palindrome(letters)
question_str = (
"Rearrange these letters to form a palindrome. A palindrome is a word, phrase, or sequence that reads the same forward and backward.\n\n"
"Rearrange these letters to form a palindrome. A palindrome is a word, phrase, or sequence that reads the same forward and backward. If there are multiple answers, only respond with one of them.\n\n"
"For example, if the letters are: a, a, b — a valid palindrome is: aba.\n\n"
f"Your letters: {', '.join(scrambled_letters)}\n\n"
"What palindrome can you form from these letters?"