Tweaked some question templates

This commit is contained in:
abdulhakeem 2025-02-17 02:58:42 -06:00
parent 2cbaab2918
commit 15140d06e7
5 changed files with 17 additions and 10 deletions

View file

@ -11,7 +11,11 @@ from typing import Optional
from ..factory import ProceduralDataset, register_dataset
QUESTION_TEMPLATE = """Count how many prime numbers there are between {start} and {end} (inclusive) ?"""
QUESTION_TEMPLATE = """Please use python code to count how many prime numbers there are between {start} and {end} (inclusive) ?
Please follow the instruction below:
# 1. Create and run the python code to return the count of the prime numbers.
# 2. Make sure to only report the count of the prime numbers as answer.
"""
@dataclass

View file

@ -32,7 +32,7 @@ class GameOfLifeDataset(ProceduralDataset):
def __init__(self, config: GameOfLifeConfig):
self._prompt_templates = [
"What will this Game of Life board look like after {simulation_steps} steps of simulation? Reply as array of array representing rows in the grid from top to bottom in JSON format. (An empty 3x3 grid would look like this: [[0,0,0],[0,0,0],[0,0,0]])\n\n{board}."
"What will this Game of Life board look like after {simulation_steps} steps of simulation? Reply as array of array representing rows in the grid from top to bottom in JSON format. Let your answer(array of array be on a single line). (An empty 3x3 grid would look like this: [[0,0,0],[0,0,0],[0,0,0]])\n\n{board}."
]
super().__init__(config=config, seed=config.seed, size=config.size)

View file

@ -200,7 +200,7 @@ Vertices: {puzzle["vertices"]}
Edges: {edges}
Possible colors: {puzzle["color_options"]}
Return your solution as a JSON map of verteces to colors. (For example: {{0: 1, 1: 2, 2: 3}})
Return your solution as a JSON map of vertices to colors. (For example: {{0: 1, 1: 2, 2: 3}})
"""
return {

View file

@ -9,8 +9,8 @@ from ..data import get_data_file_path
from ..factory import ProceduralDataset, register_dataset
QUESTION_TEMPLATE = """Transform the word ladder '{start}' to '{end}' by changing one letter at a time.
Provide your answer as a comma-separated sequence of uppercase letters without spaces.
Each step must be a valid English word."""
Provide your answer as a comma-separated sequence of uppercase letters without spaces.
Each step must be a valid English word."""
@dataclass