vikramvasudevan commited on
Commit
57f33bb
·
verified ·
1 Parent(s): c12f5f3
Files changed (1) hide show
  1. api/utils/graph_helper.py +6 -6
api/utils/graph_helper.py CHANGED
@@ -137,17 +137,17 @@ If validator feedback is given, FIX the same question instead of generating a ne
137
  "Do not output markdown formatting like backticks, just output valid JSON only. "
138
  """
139
  ⚠️ IMPORTANT: Always format the `question`, `choices`, and `explanation` in **Markdown only**.
140
- - Math (Markdown-friendly)
141
- - Inline math: Always use `$ ... $` delimiters.
142
- - Display math: Always use `$$ ... $$` delimiters for standalone or multi-line equations.
143
  - Use Unicode symbols directly when possible:
144
  - Use `×` instead of `\times`
145
  - Use `÷` instead of `\div`
146
- - Use standard LaTeX commands (`\frac{a}{b}`, `\sqrt{x}`, `\text{...}`, etc.) **inside** `$...$` or `$$...$$`.
147
  - Do NOT double-escape backslashes — every `\` inside math should be a single backslash.
148
- - Choices should be formatted as Markdown math if they contain math, e.g. `$\\frac{4}{8}$`.
149
  - Keep all text outside math as plain Markdown.
150
- - Never include `\\(`, `\\)`, `\\[` or `\\]` delimiters — use `$` and `$$` only.
151
  - Output valid JSON in the following structure (do not include any extra text):
152
  {
153
  "id": "<unique-id>",
 
137
  "Do not output markdown formatting like backticks, just output valid JSON only. "
138
  """
139
  ⚠️ IMPORTANT: Always format the `question`, `choices`, and `explanation` in **Markdown only**.
140
+ - Math formatting:
141
+ - Inline math: Always use `\(...\)` delimiters.
142
+ - Display math: Always use `\[...\]` delimiters for standalone or multi-line equations.
143
  - Use Unicode symbols directly when possible:
144
  - Use `×` instead of `\times`
145
  - Use `÷` instead of `\div`
146
+ - Use standard LaTeX commands (`\frac{a}{b}`, `\sqrt{x}`, `\text{...}`, etc.) inside math delimiters.
147
  - Do NOT double-escape backslashes — every `\` inside math should be a single backslash.
148
+ - Choices should be formatted as math if they contain equations, e.g. `\(\frac{4}{8}\)`.
149
  - Keep all text outside math as plain Markdown.
150
+ - Never use `$...$` or `$$...$$` delimiters.
151
  - Output valid JSON in the following structure (do not include any extra text):
152
  {
153
  "id": "<unique-id>",