Spaces:
Sleeping
Sleeping
CI deploy
Browse files
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
|
141 |
-
- Inline math: Always use
|
142 |
-
- Display math: Always use
|
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.)
|
147 |
- Do NOT double-escape backslashes — every `\` inside math should be a single backslash.
|
148 |
-
- Choices should be formatted as
|
149 |
- Keep all text outside math as plain Markdown.
|
150 |
-
- Never
|
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>",
|