Skip to content

fix(docs): generate new reference pipeline output before embeddings - #46611

Merged
mandarini merged 1 commit into
masterfrom
ci/fix-embeddings-for-new-flow
Jun 3, 2026
Merged

mandarini merged 1 commit into
masterfrom
ci/fix-embeddings-for-new-flow

Conversation

@mandarini

@mandarini mandarini commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

The embeddings workflow started failing after #46163 with ENOENT: ... content/reference/javascript/v2/sections.json. That PR routed the JS v2 search ingest through the new reference pipeline (loadClientLibReferenceFromNewPipeline in apps/docs/scripts/search/sources/reference-doc.ts), and updated predev and prebuild to run both codegen:references and codegen:references:new, but missed preembeddings. This chains codegen:references:new into preembeddings so pnpm run embeddings (and the :nimbus / :refresh variants that fan out to it) produces the new pipeline output before the search ingest reads it.

@supabase

supabase Bot commented Jun 3, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel

vercel Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment, Open in v0 Jun 3, 2026 9:33am
6 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jun 3, 2026 9:33am
design-system Skipped Skipped Jun 3, 2026 9:33am
studio-self-hosted Skipped Skipped Jun 3, 2026 9:33am
studio-staging Skipped Skipped Jun 3, 2026 9:33am
ui-library Skipped Skipped Jun 3, 2026 9:33am
zone-www-dot-com Skipped Skipped Open in v0 Jun 3, 2026 9:33am

Request Review

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 3, 2026
@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 2960f9a3-3e20-4d92-b1a9-41ef7d480a00

📥 Commits

Reviewing files that changed from the base of the PR and between e33331f and 9e4eb24.

📒 Files selected for processing (1)
  • apps/docs/package.json

📝 Walkthrough

Walkthrough

The PR updates the preembeddings npm script in the documentation package to execute an additional code generation command. The script now chains both codegen:references and codegen:references:new in sequence instead of running only the first step.

Changes

Build Script Update

Layer / File(s) Summary
Preembeddings script addition
apps/docs/package.json
The preembeddings script is modified to run both pnpm run codegen:references and pnpm run codegen:references:new sequentially.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

documentation

Suggested reviewers

  • kallebysantos

Poem

🐰 A script now chains both steps with care,
References old and new, beyond compare,
One line changed, the pipeline renewed,
Building docs with generation in the loop! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is completely empty. The required template sections (CONTRIBUTING.md confirmation, change type, current behavior, new behavior, and additional context) are entirely missing. Add a complete pull request description following the repository template, including the type of change, current behavior, new behavior, and any relevant context or issue links.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: updating the preembeddings script to generate new reference pipeline output before running embeddings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/fix-embeddings-for-new-flow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mandarini mandarini added the do-not-merge Not ready to be merged yet; pending other dependencies label Jun 3, 2026
@mandarini mandarini self-assigned this Jun 3, 2026
@mandarini mandarini removed the do-not-merge Not ready to be merged yet; pending other dependencies label Jun 3, 2026
@mandarini
mandarini merged commit 98e0572 into master Jun 3, 2026
39 of 40 checks passed
@mandarini
mandarini deleted the ci/fix-embeddings-for-new-flow branch June 3, 2026 10:08
@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1780481427)

Score Average Improvements Regressions
Completeness 100% (+1pp) 1 🟢 -
Conciseness 38.5% (-1pp) 5 🟢 8 🔴
Correctness 64.4% (-9pp) 1 🟢 6 🔴
Docs Faithfulness 57.3% (-8pp) 2 🟢 7 🔴
Goal Completion 80.5% (+2pp) 5 🟢 5 🔴
Tool Usage 68.6% (-6pp) - 3 🔴
Knowledge Usage 92.3% (-3pp) - 1 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 71.4% (-24pp) 1 🟢 4 🔴
URL Validity 100% - -
Time_to_first_token 0.01tok (+0tok) 5 🟢 24 🔴
Llm_calls 6.98 (-0.07) 12 🟢 12 🔴
Tool_calls 3.16 (+0.05) 10 🟢 10 🔴
Errors 0.02 (-0.02) 2 🟢 1 🔴
Llm_errors 0.01 (-0.01) 2 🟢 1 🔴
Tool_errors 0 (+0) - -
Prompt_tokens 26871.15tok (-643.38tok) 14 🟢 11 🔴
Prompt_cached_tokens 7115.03tok (-76.51tok) 11 🟢 11 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 600.64tok (-23.05tok) 15 🟢 13 🔴
Completion_reasoning_tokens 97.46tok (+4.13tok) 16 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 27471.79tok (-666.43tok) 15 🟢 14 🔴
Estimated_cost 0$ (0$) 14 🟢 9 🔴
Duration 22.3s (+4.17s) 12 🟢 17 🔴
Llm_duration 15.53s (+4.05s) 14 🟢 15 🔴

tomaspozo pushed a commit that referenced this pull request Jun 4, 2026
…46611)

The embeddings workflow started failing after #46163 with `ENOENT: ...
content/reference/javascript/v2/sections.json`. That PR routed the JS v2
search ingest through the new reference pipeline
(`loadClientLibReferenceFromNewPipeline` in
`apps/docs/scripts/search/sources/reference-doc.ts`), and updated
`predev` and `prebuild` to run both `codegen:references` and
`codegen:references:new`, but missed `preembeddings`. This chains
`codegen:references:new` into `preembeddings` so `pnpm run embeddings`
(and the `:nimbus` / `:refresh` variants that fan out to it) produces
the new pipeline output before the search ingest reads it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants