IL_CMS_Tools / SOLUTIONS_FORMAT.md
Sahil Kumar
Claude Opus 5.5
Question Text tool (5,000 QIDs per run) + pending approve/unapprove, solutions and Resolve TOC work
5b082d6
|
Raw History Blame Contribute Delete
6.07 kB

Solutions & Answer Key β€” paste format (SME reference)

This is the format the Solutions & Keys tool (/solutions) accepts when you paste solutions directly, or hand them to the AI from your PDF. When you follow these rules, parsing is clean: your solution text goes to the right question, and the question number never leaks into the stored solution.


1. Two ways to mark a block

A block = one question's solution. Blocks are separated in one of two ways:

Style How each block starts Use when
QID (recommended) ILQ-123456 <solution> Always safe. Each block names its own question.
Numbered 1. <solution>, 2. <solution>, … Only if the whole paste has no QID at all. Blocks map in the order of the QIDs you entered in Step 2.

QID style

ILQ-123456  Apply v = u + at: v = 5 + 2(3) = 11 m/s
Step 1: ...   (step lines stay part of this solution)

ILQ-123457  For a body at rest, u = 0, so v = at = 3(5) = 15 m/s

Numbered style (only when NO QID appears anywhere in the paste)

1. Apply v = u + at: v = 5 + 2(3) = 11 m/s

2. For a body at rest, u = 0, so v = at = 3(5) = 15 m/s

Block 1 β†’ first fetched QID, block 2 β†’ second, and so on. The numbers (1., 2.) count in order only while they continue the sequence 1, 2, 3 ….

Gotcha: as soon as one QID (ILQ-…) appears anywhere in the paste, the rule flips: only QID lines start new blocks. Any numbered lines you typed are then treated as ordinary solution text (step numbers etc.), so a solution that contains lines like 1. …, 2. … must be pasted with QIDs β€” not numbers β€” as separators.


2. Question-number markers that are ignored

The tool strips the question number from the front of a block so it is never written as part of the solution. All of these are accepted and dropped:

1. Apply F = ma                      β†’  Apply F = ma
1.Apply F = ma                       β†’  Apply F = ma
1.                                   β†’  (marker on its own line, solution next line)
Q1. Apply F = ma                     β†’  Apply F = ma
\item[5.] Apply F = ma               β†’  Apply F = ma
\item[5]Apply F = ma                 β†’  Apply F = ma
\begin{itemize}\item[7] Apply F=ma
\end{itemize}                        β†’  Apply F = ma
  • Plain markers: 1. / 1. glued (1.sol) / 1) / a lone 1. on its own line / Q1..
  • LaTeX markers: \item[5.] / \item[5], with or without a \begin{itemize} / \end{itemize} wrapper. The \begin{itemize}…\end{itemize} scaffolding is removed so it never reaches the stored solution.
  • These only act as question markers at the front of a block. The same style of number in the middle of a solution stays as text.

3. Answer key line

An optional last line of a block can propose the answer key:

ILQ-123456  Apply v = u + at: v = 5 + 2(3) = 11 m/s
Answer: B

ILQ-123457   Kinematic equations give time. Ans: 3.5 s

Accepted forms: Answer: B / Answer = B / Ans: B / Ans. 19.6 (case-insensitive, **…** bold markdown around it is also fine).

  • Only the last non-empty line counts. An Answer: mentioned inside the solution text stays part of the solution.
  • The answer line is stripped out β€” it is not written as part of the solution, it only proposes the key box.
  • If your solution has an embedded \item[5.]-style marker after the answer line (a common .tex artifact), the answer line must come last.

4. What the tool then shows and writes

Each parsed block appears as a row with two checkboxes:

Box Written when
Sol Solution text exists (pre-ticked)
Key An Answer: line was proposed and the question is not matrix/passage. A differing key is left unticked on purpose β€” tick it only after you decide the stored key is wrong.

Verdicts:

Verdict Meaning
MATCH Your pasted answer agrees with the stored key
MISMATCH Your pasted answer differs from the stored key (left unticked)
NO KEY The question has no stored key; your Answer: would set it
UNSURE No usable Answer: line, or the two answers can't be compared

Numeric answers compare with small relative tolerance (~1e-4); an index key like 3 is shown as C (3) so you can read it against your letter answer.


5. Math

Math must be wrapped in $…$ LaTeX to be converted and rendered:

ILQ-123456  Resolving about P, $\tau = 0 \Rightarrow F \cdot d = 0$
So $F = \frac{N}{d}$ and the boxed result is $\boxed{F = 20\ \text{N}}$.
  • Inline $…$ math becomes real MathML in the preview and on the CMS.
  • $\boxed{…}$ renders as a boxed answer (it is shown boxed in the preview and stored boxed).
  • A block with no $…$ at all (e.g. raw \begin{itemize}\item[5.] with unlinked math, plain x β†’ 0) will be stored verbatim β€” the tool cannot convert unmarked LaTeX. Keep the $ delimiters in mind.

6. Good vs. not-so-good examples

Good β€” QID style:

ILQ-123456  Velocity after acceleration: $v = u + at = 5 + 2(3) = 11$ m/s
Answer: B

ILQ-123457  Time of flight: $t = \frac{2u\sin\theta}{g}$
Answer: 3.5

Good β€” numbered style, no QIDs anywhere:

1. Velocity after acceleration: $v = 5 + 2(3) = 11$ m/s

2. Time of flight: $t = \frac{2u\sin\theta}{g}$

Avoid β€” mixing numerals with QIDs: numbering 1. … intended as separators and also pasting ILQ lines means the numbers are handled as solution text (insert a QID per block instead). Only a leading number on the block's first line is dropped:

ILQ-123456 1. find a  2. apply v = u + at   ← "1." drops, but "2." stays in the
                                              stored solution text (a step line)

Avoid β€” non-consecutive numbering in a numbered (no-QID) paste: 1. … 5. … β€” 5. does not continue the sequence and will be treated as text.