Skip to content

Commit 680c751

Browse files
Improve handling of placeholders in response generation for STAR dataset
1 parent ceb7967 commit 680c751

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/sdialog/datasets.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,19 @@ def get_flowchart_description_for_scenario(scenario):
426426
```json
427427
{STAR.read_graph_responses(task_name)}
428428
```
429-
where UPPERCASE words above are just example placeholders. You MUST fill in those with any coherent values in the actual conversation.
429+
430+
**CRITICAL INSTRUCTION - PLACEHOLDER HANDLING:**
431+
Placeholders in the format {{VARIABLE_NAME}} (such as {{APARTMENT_NAME}}, {{POIS}}, {{FLOOR}}) are TEMPLATE VARIABLES that you MUST REPLACE with actual, specific, concrete values during the conversation.
432+
433+
DO NOT output placeholders as-is. Examples:
434+
- WRONG: "I found an apartment in APARTMENT_NAME"
435+
- CORRECT: "I found an apartment in Sunrise Towers"
436+
- WRONG: "It is located near POIS"
437+
- CORRECT: "It is located near Central Park and the subway station"
438+
- WRONG: "It is on level FLOOR"
439+
- CORRECT: "It is on level 3"
440+
441+
Always generate realistic, contextually appropriate values instead of leaving placeholders unfilled.
430442
""" # noqa: E501
431443
return flowcharts
432444

0 commit comments

Comments
 (0)