Math: every flavour we render
A tour of what KaTeX gives us inside the renderer. Useful as a copy-paste reference for new docs.
Inline math
Euler's identity is . The Cauchy-Schwarz inequality is — the same inequality that limits how strongly correlated two embeddings can be when their norms are bounded. We rely on it implicitly every time we threshold a cosine-similarity score.
A more workaday example: the sigmoid is , and our reranker uses softmax to normalise the logit scores before we threshold.
Block math
The Gaussian integral, foundational for normalising kernels:
The HNSW search complexity, roughly:
where is the number of indexed vectors and is the max-connections parameter we set to 16 in our pgvector index.
Matrices
Aligned equations
What we don't render (yet)
Custom macros. KaTeX supports \newcommand, but we don't wire it through the editor — adding it would require either a per-doc macro registry or a hub-wide one. Filed as "v7 maybe" if anyone asks.