ai-dev-kit icon indicating copy to clipboard operation
ai-dev-kit copied to clipboard

Test experimental branch: ai-ml-engineering

Open dustinvannoy-db opened this issue 7 months ago • 6 comments

Run evals for experimental branch ai-ml-engineering skills.

  • databricks-agent-bricks
  • databricks-ai-functions
  • databricks-model-serving
  • databricks-mlflow-evaluation
  • databricks-vector-search

dustinvannoy-db avatar Apr 22 '26 17:04 dustinvannoy-db

databricks-mlflow-evaluation — A/B comparison: main vs. experimental

Ran the A/B against the eval/ai-ml-engineering-a-b-ground-truths curated ground truths (tool-agnostic, no trace_expectations blocks). Per-side MCP isolation enforced via per-repo .mcp.json (A: databricks server with 44 tools; B: {"mcpServers": {}}, CLI-only).

MLflow runs:

  • A (MCP): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/89e7f32443f74e7793a93eef9f787961
  • B (CLI): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/6e6ed35665724912a259dabd8e123e78

Headline

TIE, confidence 0.20 — the minimum-signal verdict, meaning the two skills are indistinguishable on this prompt set.

Per-level scores

Level Main (MCP) Experimental (CLI)
L3 (static doc audit) 0.87 0.89
L5 (output — agent task completion) 0.36 0.54

Judge verdict

TIE, confidence 0.20. All four dimensions tied. No regression flags.

Dimension Main Experimental Winner
correctness 6 6 TIE
user_experience 7 7 TIE
safety 8 8 TIE
code_quality 7 7 TIE

Rationale excerpt

Both transcripts attempted the same task — explain a basic MLflow GenAI evaluation — and both ran the same skill, hit the same initial path-not-found errors, recovered with ls to discover the references directory... Per the anti-bias rules, when the visible evidence does not differentiate the two runs, the correct call is TIE.

Source-diff context

databricks-skills/databricks-mlflow-evaluation/ is identical between origin/main and origin/experimental (manifest.yaml has tool_modules: [] so the skill explicitly doesn't load MCP). This run measures whether having 44 MCP tools available in the A-side context perturbs agent behavior. The TIE 0.20 verdict says: no measurable effect.

Other data

  • Composite scores: main ≈ 0.62, experimental 0.71 (the 0.09 gap is well within Jack's noisy ±0.10–0.20 L5 range).
  • Both transcripts truncated mid-code-block at the default per-session timeout (5 min). Re-ran subsequent skills with --timeout 600.
  • Compare ID: 0a36f2c63a6b4ebaa94123f0c69cc46b

Caveats

  • Small sample: 5 ground-truth cases × 4 sessions each = 20 traces total.
  • L5 variability dominates; the per-side judge confidence of 0.20 is the more stable signal.

Local HTML report for one side per skill is available on request — stf compare only persists the last side that finishes, so this run has a mixed set.

jralfonsog avatar May 19 '26 10:05 jralfonsog

databricks-agent-bricks — A/B comparison: main vs. experimental

Ran the A/B against the eval/ai-ml-engineering-a-b-ground-truths curated ground truths (5 cases rewritten to tool-agnostic). Per-side MCP isolation enforced.

MLflow runs:

  • A (MCP): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/2c4598e58e0e44ffad7870f034f87ec8
  • B (CLI): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/cbf2660070534b0d8453d7e09df64c4d

Headline

B wins, confidence 0.60. The clearest result of the five skills — experimental's CLI-first guidance led the agent to produce a real, verifiable artifact (a created Knowledge Assistant with a returned ID) while main went down a long UC-plumbing detour and never reached the user's actual ask.

Per-level scores

Level Main (MCP) Experimental (CLI)
L3 (static doc audit) 0.72 0.83
L5 (output — agent task completion) 0.42 0.40

Judge verdict

B wins, confidence 0.60. B wins three dimensions, code_quality tied. No regression flags.

Dimension Main Experimental Winner
correctness 3 6 B +3
user_experience 4 7 B +3
safety 4 7 B +3
code_quality 7 7 TIE

Rationale excerpt

B's run produced a concrete, verifiable artifact (a Knowledge Assistant with id 2b47cb3c-95d4-4dd4-8452-afda75128b15, endpoint ka-2b47cb3c-endpoint, state CREATING) before failing on the knowledge-source step, while A's manage_ka call failed up-front on the same schema-not-found error and then went down a long detour trying to create the catalog/schema itself, repeatedly bouncing off permission and Default Storage errors... On safety, A actually takes a riskier path: it tries to CREATE CATALOG and ALTER CATALOG SET OWNER as side-effects of the user's KA request, which is wider blast-radius than the user asked for; B stayed within the KA surface.

Source-diff context

This is the only real source-level A/B result here — databricks-skills/databricks-agent-bricks/ diff is 4 files, 854+/703- between main and experimental. The verdict reflects a real difference in skill content guiding the agent toward different (and in this case, better) behavior in B.

Other data

  • Composite scores: main ≈ 0.57, experimental 0.57.
  • Compare ID: cacd0eafa76f4b478a2c41db5a6d09d1
  • The static-level lift on experimental (+0.11) is consistent with the substantive doc-content changes.

Caveats

  • The judge raised a small concern that the databricks knowledge-assistants CLI in B's run may be preview/experimental, but in this transcript the CLI did return a successful create response, so the concern didn't materialize.
  • Both sides hit the same environmental constraint (missing my_catalog.my_schema); B handled it better by stopping at the KA layer instead of trying to provision UC objects.

Local HTML report for one side per skill is available on request — stf compare only persists the last side that finishes, so this run has a mixed set.

jralfonsog avatar May 19 '26 10:05 jralfonsog

databricks-vector-search — A/B comparison: main vs. experimental

Ran the A/B against the eval/ai-ml-engineering-a-b-ground-truths curated ground truths (7 cases rewritten, 2 dropped for being MCP-prescriptive). Per-side MCP isolation enforced. First attempt failed at the judging step with an empty judge response (transient); these results are from the retry.

MLflow runs:

  • A (MCP): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/165af2d81d294f56ab9958dfe20e9680
  • B (CLI): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/9bc3f6b58c2d4db8a832e24e9daca701

Headline

B wins, confidence 0.55. Both responses truncated mid-code-block; B's truncation landed at a more useful boundary (create_endpoint(name=..., endpoint_type='STANDARD')), while A cut off at w = WorkspaceClient( with no endpoint-creation code visible.

Per-level scores

Level Main (MCP) Experimental (CLI)
L3 (static doc audit) 0.80 0.88
L5 (output — agent task completion) 0.50 0.50

Judge verdict

B wins, confidence 0.55. B wins correctness and code_quality (driven by truncation boundary); UX and safety tied. No regression flags.

Dimension Main Experimental Winner
correctness 4 6 B +2
user_experience 7 7 TIE
safety 8 8 TIE
code_quality 4 7 B +3

Rationale excerpt

Both transcripts were truncated mid-response, so neither completed the user's ask fully. However, within the visible output, B produced more usable content: a working WorkspaceClient() instantiation followed by an actual create_endpoint() call with both name and endpoint_type parameters... B is therefore measurably closer to satisfying the 'create a Vector Search endpoint' ask.

Source-diff context

Real source-level A/B — databricks-skills/databricks-vector-search/ diff is 3 files, 28+/140- (mostly deletions in experimental). The L3 lift on experimental (+0.08) suggests the leaner doc is read as cleaner by the static judge.

Other data

  • Composite scores: main ≈ 0.65, experimental 0.69.
  • Compare ID: 7e76d5db37674bc6a5d518d40d738bd9
  • Truncation persisted at --timeout 600 — these prompts ask for substantial code samples and even 10 min isn't always enough.

Caveats

  • The B-wins margin is driven mainly by where each side happened to truncate, not by qualitative content differences in the non-truncated portion.
  • First run failed at judging step (judge output was not valid JSON: Expecting value: line 1 column 1 (char 0)), likely a transient empty response from the judge endpoint. Retry was clean.

Local HTML report for one side per skill is available on request — stf compare only persists the last side that finishes, so this run has a mixed set.

jralfonsog avatar May 19 '26 10:05 jralfonsog

databricks-ai-functions — A/B comparison: main vs. experimental

Ran the A/B against a hand-authored ground truth (7 cases) — the experimental branch had no .test/skills/databricks-ai-functions/ at all, so the manifest and grounds were created from scratch on the eval/ai-ml-engineering-a-b-ground-truths branch. The source_note in the manifest documents this. Read this result with that caveat.

MLflow runs:

  • A (MCP): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/80d4b0d443b74979b94fe61c52719dd9
  • B (CLI): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/9ac5673a91af4bbba6186011862c7d2b

Headline

B wins, confidence 0.55. Both produced the same idiomatic core SQL (ai_classify(ticket_text, ARRAY(...)) AS priority); difference is in truncation pattern and a useful CTAS persistence variant on B.

Per-level scores

Level Main (MCP) Experimental (CLI)
L3 (static doc audit) 0.90 0.89
L5 (output — agent task completion) 0.49 0.56

Judge verdict

B wins, confidence 0.55. Only UX is non-tied; remaining three dimensions are level. No regression flags.

Dimension Main Experimental Winner
correctness 8 8 TIE
user_experience 6 7 B +1
safety 8 8 TIE
code_quality 8 8 TIE

Rationale excerpt

A's response is truncated mid-PySpark example ('priority', expr("ai_classify(ticket_text, array('urgent', 'not urgent') — the SQL primary answer is complete but the secondary PySpark example is cut off mid-token. B's response is also truncated but at a more graceful boundary (FROM support_ticke) after delivering both the basic SELECT and a useful CTAS persistence variant... Given the small but real edge in completeness and added utility, B is the marginal winner, but with low confidence since the core technical answer is identical.

Source-diff context

databricks-skills/databricks-ai-functions/ is identical between origin/main and origin/experimental. The L5 delta (B +0.07) is best read as "agent on the A side is marginally perturbed by 44 MCP tools available-but-unused in context," not a skill-content effect. The skill text is the same source on both sides.

Other data

  • Composite scores: main ≈ 0.65, experimental 0.69.
  • Compare ID: c5ca30a05bff44488517c6fbf11d656b

Caveats

  • Hand-authored ground truth — different curation lens than the other four skills (which started from existing grounds and were rewritten).
  • Small sample: 7 cases × 4 sessions = 28 traces.
  • The B-wins margin is primarily a truncation-pattern artifact.

Local HTML report for one side per skill is available on request — stf compare only persists the last side that finishes, so this run has a mixed set.

jralfonsog avatar May 19 '26 10:05 jralfonsog

databricks-model-serving — A/B comparison: main vs. experimental

Ran the A/B against the eval/ai-ml-engineering-a-b-ground-truths curated ground truths (8 cases rewritten tool-agnostic). Per-side MCP isolation enforced.

MLflow runs:

  • A (MCP): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/791f62d265d7413d8ae26a9cbc54acab
  • B (CLI): https://fevm-voodoo-lab.cloud.databricks.com/ml/experiments/1147907793560387/runs/803817c381574664b624b94f3b2961be

Headline

TIE, confidence 0.30 (judge leans slightly toward A). Interesting split: B has the better L3 static score (+0.07) but the judge prefers A on UX and safety because A wrote artifacts to /tmp while B wrote inside the user's repo, and A used a more idiomatic ID prefix convention.

Per-level scores

Level Main (MCP) Experimental (CLI)
L3 (static doc audit) 0.77 0.84
L5 (output — agent task completion) 0.56 0.55

Judge verdict

TIE, confidence 0.30, with A winning UX and safety. No regression flags.

Dimension Main Experimental Winner
correctness 8 8 TIE
user_experience 7 6 A +1
safety 8 7 A +1
code_quality 8 7 TIE

Rationale excerpt

A wrote the agent to /tmp/echo_agent/agent.py to avoid polluting the repo, and additionally created a test_agent.py smoke test — this is a slightly better UX in terms of verifiability... B writes inside the user's repo directory which could be considered a minor safety concern (polluting working tree), while A uses /tmp... Given the small, balanced differences and no clear correctness regression on either side, this is best called a TIE with low confidence leaning slightly toward A.

Source-diff context

Real source-level A/B — databricks-skills/databricks-model-serving/ diff is 8 files, 179+/272- between main and experimental. The L3 lift on experimental is real (the leaner doc is read as cleaner), but the L5 effect goes the other way — the agent on B made a small repo-pollution choice the judge flagged.

Other data

  • Composite scores: main ≈ 0.69, experimental 0.70.
  • Compare ID: d2aa91245ae14f198582eb5fd297fa62

Caveats

  • The repo-pollution call is an agent decision, not a skill-content one — adding a "default to /tmp for ephemeral artifacts" hint to the experimental skill could close this gap.
  • Small sample: 8 cases × 4 sessions = 32 traces.

Local HTML report for one side per skill is available on request — stf compare only persists the last side that finishes, so this run has a mixed set.

jralfonsog avatar May 19 '26 10:05 jralfonsog

Closing as stale — same reason as the data-eng counterpart.

These skills moved to databricks/databricks-agent-skills (with databricks-model-serving since split from databricks-ml-training), and the experimental branch this tracked no longer exists. Eval work against them belongs in that repo.

jacksandom avatar Aug 05 '26 17:08 jacksandom