Open Bug 2019686 Opened 6 months ago Updated 6 months ago

[Models] Seeing markdown in a Smart Window chat

Categories

(Core :: Machine Learning: General, defect, P1)

defect

Tracking

()

People

(Reporter: rrando, Unassigned)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [genai][models])

Attachments

(4 files)

274.23 KB, image/jpeg
Details
272.80 KB, image/jpeg
Details
224.49 KB, image/jpeg
Details
38.03 KB, application/json
Details
Attached image n2.jpg
Attached image n1.jpg
Whiteboard: [genai]
Attached file prompt.json

The last chat history sent from the user is attached as a json. Theoretically it should trigger the error.

:gazhibekova, since you are the author of the regressor, bug 2015111, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(gazhibekova)
Severity: -- → S3
Flags: needinfo?(gazhibekova)

Root Cause:
The "No Tables" instruction in the system prompt was insufficient for multi-turn conversations where the model had comparison data from search results. The model correctly used headers + bullets in the main body but reverted to Markdown table syntax in "Key Differences" summary sections at the end of responses.

Fix:
Strengthened the "No Tables" instruction across all model prompts with:

  • Explicit callout of summary/wrap-up sections as failure points
  • A negative example showing what NOT to do (table in a comparison section)
  • Two correct alternative formats (headers+bullets and labeled comparison list)
  • A reinforcement reminder at the end of the prompt

Verification:

  • Reproduced the bug locally using the reported conversation flow
  • Ran automated eval (no_tables suite) with 35 test cases including 5 new multi-turn cases that mirror the exact bug scenario
  • Results across all 3 models:
  • Qwen3-235B: 0/35 tables, 89% alternative formatting
  • gpt-oss-120b: 0/35 tables, 91% alternative formatting
  • gemini-2.5-flash-lite: 0/35 tables, 91% alternative formatting
  • Confirmed fix locally -- the reported conversation no longer produces tables

PR for updating the prompt in remote-settings: Strengthened the No Tables instruction
PR in eval repo: automated eval PR

Priority: -- → P1
Summary: Seeing markdown in a Smart Window chat → [Models] Seeing markdown in a Smart Window chat
Whiteboard: [genai] → [genai][models]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: