Research Blogging Spike

A test article proving that this homepage can render math, citations, and code.

Why this exists

This post is a small integration test for the writing system. It should support math, citations, and code without turning the site into a heavy application.

Inline math works: L(θ)=ExD[(fθ(x),y)]L(\theta)=\mathbb{E}_{x \sim D}[\ell(f_\theta(x), y)].

Block math works too:

θL(θ)=1Ni=1Nθ(fθ(xi),yi)\nabla_\theta L(\theta) = \frac{1}{N}\sum_{i=1}^{N}\nabla_\theta \ell(f_\theta(x_i), y_i)

The citation pipeline should resolve BibTeX references such as (Chen et al., 2020).

Code

export async function improve(prompt: string) {
  const plan = await model.plan(prompt);
  const result = await sandbox.run(plan);
  return evaluator.score(result);
}
Chen, G., Chen, W., Ma, Y., Yang, H., & Yu, B. (2020). DAMO: Deep Agile Mask Optimization for Full Chip Scale. Proceedings of the 39th International Conference on Computer-Aided Design. https://doi.org/0.1145/3400302.3415705