You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: tighten Screen Highlights prompt for atomic extraction (#2294) (#2295)
The shipped prompt was too loose — small models sometimes returned a
whole sentence containing the URL, or grouped a label with its value
("Tracking: ABC123" came back as OTHER: Tracking: ABC123). Users tap
items to copy them, so each result needs to be a single atomic value.
Rewrites the prompt to:
- Lead with atomicity ("each entry is a single atomic value")
- Inline a worked example per HighlightType — the cheapest reliable
way to steer small on-device models
- Add an explicit "strip surrounding prose / labels" rule with the
Tracking: ABC123 -> OTHER: ABC123 example
- Reinforce that multiple URLs on one screen are multiple URL: lines
- Tighten OTHER to "atomic identifiers" so it doesn't catch prose
No parser, type, cap, backend, UI, or test changes — only the prompt
string. Existing 12 parser tests still pass.
Closes#2294
0 commit comments