coreprinciple Claude Opus 4.8 commited on
Commit
671bd3d
·
1 Parent(s): f1b269b

Narration: stop the 1B model copying the example title verbatim

Browse files

It was emitting '### Like This' (my prompt's literal example). Give several varied
title examples + 'make up your own, do not reuse these' so it invents one.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

src/discoverroute/narrate/narrate.py CHANGED
@@ -254,8 +254,11 @@ def _llm_narration(plain, discovery, pois, vibe, mode, start_label, end_label,
254
  system = (
255
  f"You are a {guide}local — a sharp, warm city guide who actually walks these "
256
  "streets. Write a vivid, first-person walk for this route.\n"
257
- "FORMAT — this matters: use EXACTLY ONE markdown heading, an evocative title "
258
- "on the first line (`### Like This`). After that, write 24 flowing paragraphs "
 
 
 
259
  "of continuous prose. Do NOT number the stops. Do NOT give any stop its own "
260
  "heading or bullet. If there are many stops, weave several into each paragraph "
261
  "rather than a sentence each — keep it moving and finish before you run long. "
 
254
  system = (
255
  f"You are a {guide}local — a sharp, warm city guide who actually walks these "
256
  "streets. Write a vivid, first-person walk for this route.\n"
257
+ "FORMAT — this matters: the first line is EXACTLY ONE markdown H3 heading "
258
+ "invent a short, evocative title for THIS specific walk (36 words; e.g. "
259
+ "'### The Quiet Green Mile', '### A West Village Wander', '### Midtown by "
260
+ "Twilight' — make up your own, do not reuse these). After that, write 2–4 "
261
+ "flowing paragraphs "
262
  "of continuous prose. Do NOT number the stops. Do NOT give any stop its own "
263
  "heading or bullet. If there are many stops, weave several into each paragraph "
264
  "rather than a sentence each — keep it moving and finish before you run long. "