Test code snippets
from langroid.language_models.base import LLMMessage, Role
msg = LLMMessage(
content="what is the capital of Bangladesh?",
role=Role.USER,
)
Maybe better syntax highlighting using shortcode
| |
Test math notation
A nice equation is $e^{i\pi} + 1 = 0$, which is known as Euler’s identity. Here is a cool equation too, and in display mode:
$$ e = mc^2 $$
Latex with newlines
For math blocks that use \\ for newlines, use the math shortcode like this:
{{< math >}}
$$
\begin{bmatrix}
a & b \\
c & d \\
e & f \\
\end{bmatrix}
$$
{{< /math >}}
which renders like this:
$$ \begin{bmatrix} a & b \\ c & d \\ e & f \\ \end{bmatrix} $$or a multi-line equation
$$ \begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{aligned} $$