Skip to content

Conversation

romanrizzi
Copy link
Member

Wrapping the expected response with <output> tags confuses models, especially those from the Claude family, which don't have schema support and rely on prefilling. Relying on prefilling means they only know the response must start with {, and how the JSON looks is only hinted at in the system prompt.

Wrapping the expected response with `<output>` tags confuses models, especially those from the Claude family, which don't have schema support and rely on prefilling. Relying on prefilling means they only know the response must start with `{`, and how the JSON looks is only hinted at in the system prompt.
@romanrizzi romanrizzi force-pushed the explicit_json_prompt branch from 7e5ef2d to 000f318 Compare August 20, 2025 14:37
@nattsw
Copy link
Contributor

nattsw commented Aug 20, 2025

(left comment in chat about db)

@romanrizzi romanrizzi merged commit 5ccd7fa into main Aug 20, 2025
15 checks passed
@romanrizzi romanrizzi deleted the explicit_json_prompt branch August 20, 2025 16:56
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/ai-spam-bot-says-it-is-not-spam-but-scan-log-says-it-is-spam/379375/5

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/daily-summary-5am-utc/291851/569

yuriyaran pushed a commit that referenced this pull request Aug 21, 2025
…34442)

Wrapping the expected response with `<output>` tags confuses models,
especially those from the Claude family, which don't have schema support
and rely on prefilling. Relying on prefilling means they only know the
response must start with `{`, and how the JSON looks is only hinted at
in the system prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants