Skip to content

Feat/llm evals - #19

Merged
gitsad merged 22 commits into
mainfrom
feat/llm-evals
May 7, 2026
Merged

gitsad merged 22 commits into
mainfrom
feat/llm-evals

Conversation

@gitsad

@gitsad gitsad commented May 7, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds model-specialised MDMA_AUTHOR prompt variants for every major LLM family and wires them into the demo's system-prompt picker. Instead of one generic prompt, each vendor/model gets a composition tuned to its known failure modes — derived from running the eval suite (evals/) and iterating until all (or near-all) tests pass.

New prompt variants added:

Vendor Models
OpenAI gpt-5, gpt-5-mini, gpt-5-nano, gpt-5.1gpt-5.5, gpt-5.4-mini/nano, gpt-4.1, gpt-4.1-mini/nano
Anthropic claude-opus-4.7, claude-opus-4.6, claude-sonnet-4.6, claude-haiku-4.5
Google gemini-3.1-pro-preview (+ customtools), gemini-3.1-flash-lite-preview, gemini-3-flash-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite
xAI grok-4.3, grok-4.20

Infrastructure:

  • evals/select-prompt.mjs — automatic longest-substring routing from model ID to variant file; no config required when adding a new variant
  • packages/prompt-pack/src/prompts/mdma-author/registry.ts — hand-curated list consumed by the demo picker (AUTHOR_PROMPT_VARIANTS)
  • README.md — prompt matrix showing pass rates across 4 eval suites per variant

Closes #

Type of Change

  • Bug fix
  • New feature (non-breaking change that adds functionality)
  • Breaking change
  • Refactor
  • Documentation
  • CI / tooling

Packages Affected

  • @mobile-reality/mdma-spec
  • @mobile-reality/mdma-parser
  • @mobile-reality/mdma-runtime
  • @mobile-reality/mdma-attachables-core
  • @mobile-reality/mdma-renderer-react
  • @mobile-reality/mdma-prompt-pack

How to Test

  1. Open the demo app and go to chat settings — the "Optimized System Prompt for" dropdown should show all new variants.
  2. Select e.g. Google — Gemini 2.5 Pro and send a message asking for a form — verify the response is a valid MDMA document.
  3. Run pnpm run eval:author in root against any of the new model variants — results should match the README matrix.

@gitsad
gitsad merged commit 0ca2888 into main May 7, 2026
1 check passed
@gitsad
gitsad deleted the feat/llm-evals branch May 12, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants