Skip to content

metric: update LLMTextQualityV5#380

Merged
e06084 merged 2 commits intoMigoXLab:devfrom
e06084:dev
Apr 1, 2026
Merged

metric: update LLMTextQualityV5#380
e06084 merged 2 commits intoMigoXLab:devfrom
e06084:dev

Conversation

@e06084
Copy link
Copy Markdown
Collaborator

@e06084 e06084 commented Apr 1, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the LLMTextQualityV5 class by refining the criteria for identifying mathematical and code-related errors. It introduces two distinct failure modes for formulas—broken LaTeX syntax and stripped mathematical content—and provides detailed corruption patterns for code blocks, such as lost indentation and broken identifiers. The review feedback correctly identifies that several examples intended to show 'broken' syntax or 'unclosed' tags were actually syntactically valid or correctly closed, and points out an inconsistency in the code block example regarding the presence of code fences.

**(A) Broken LaTeX syntax** — delimiters or environments are present but malformed:
- Delimiters unmatched: $ without closing $ (LaTeX context, not dollar signs)
- Environments unclosed: \\begin{{align}} without \\end{{align}}
- Syntax broken: \\frac{{a}}{{b missing closing }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example provided for "Syntax broken" (\\frac{{a}}{{b missing closing }}) results in a syntactically valid LaTeX expression (\frac{a}{b missing closing }) when the template is formatted. To effectively demonstrate broken syntax to the LLM, the closing brace should be omitted so that the expression remains unclosed.

Suggested change
- Syntax broken: \\frac{{a}}{{b missing closing }}
- Syntax broken: \\frac{{a}}{{b missing closing

- Delimiters unmatched: $ without closing $ (LaTeX context, not dollar signs)
- Environments unclosed: \\begin{{align}} without \\end{{align}}
- Syntax broken: \\frac{{a}}{{b missing closing }}
- HTML tags unclosed: <sub>text without </sub>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example for "HTML tags unclosed" (<sub>text without </sub>) actually shows a correctly closed tag. To properly demonstrate an unclosed tag to the model, the closing </sub> should be removed.

Suggested change
- HTML tags unclosed: <sub>text without </sub>
- HTML tags unclosed: <sub>text without

for i in range( 1,len(sys .argv), 2):
pts .append([int(sys .argv[i]), int(sys .argv[i +1])])
```
Correct version would have a code fence, proper indentation, and no spaces inside `sys.argv`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The explanation states that a "Correct version would have a code fence", but the "BAD" example provided in the preceding lines (85-90) already includes a code fence. This inconsistency might confuse the LLM. The explanation should be updated to focus on the issues actually demonstrated in the example, such as the lack of indentation and the corrupted identifiers.

Suggested change
Correct version would have a code fence, proper indentation, and no spaces inside `sys.argv`.
Correct version would have proper indentation and no spaces inside identifiers.

@e06084 e06084 merged commit d315842 into MigoXLab:dev Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants