Repository navigation
[EIS] Add Decision models to the sheet sync and supported models page - #9035
theletterf wants to merge 2 commits into
Conversation
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
🔍 Preview links for changed docs |
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
|
+CC @elastic/developer-docs @seanhandley Ready to merge when the new Decision models come out. |
leemthompo
left a comment
There was a problem hiding this comment.
LGTM, Cursor flagged the following operational caveats—I'm sure we're already aware:
- Merging before the sheet has a
Decisionrow and a sync run will temporarily show an empty Decision models table (headers only) on the live page. - Verify the sheet's
Typevalue is literally"Decision"(case-sensitive) via adry_runof the sync workflow. - Coordinate with #9593 (adds
Author Terms)—no merge conflict, just run the sync workflow after merging so all CSVs pick up the updated columns.
## Summary The EIS catalog sheet (`Public Model List` tab) has a new `Author Terms` column. The sheet-to-docs sync only writes the columns listed in `.github/scripts/sheet2docs/config.yml`, so it ignored it. This adds `Author Terms` to the shared `defaults.columns` list, between `Model Card` and `Provider Terms` to match the sheet order. Every output (`chat-models.csv`, `embedding-models.csv`, `reranker-models.csv`) inherits it. The scheduled sync regenerates the CSVs with the new column on its next run; this PR doesn't edit them by hand. ### Things to check * The sheet currently has **two** columns headed `Author Terms` (F, after `Model Card`, and M, after `Data Used To Train Models?`). The sync reads rows into a dict keyed by header, so one column silently shadows the other. The values match in the rows I checked, but it would be safer to rename or remove one in the sheet. * The earlier `Author Terms` column was removed from the config in elastic#4881. This adds it back. * Related: elastic#9035 adds a `decision-models.csv` output and a header-only seed file. That seed file will need `Author Terms` added to its header if it merges before the next sync run. * I haven't run the sync end to end. Run the workflow with `dry_run` to confirm the CSVs pick up the column. ## Generative AI disclosure 1. Did you use a generative AI (GenAI) tool to assist in creating this contribution? - [x] Yes - [ ] No Tool(s) and model(s) used: Claude Code (Claude Sonnet 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Add a decision-models.csv output filtered on the Decision type, a Decision models section on the supported models page, and write a header-only CSV when a filter matches no rows. Related to elastic/docs-eng-team#1130 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
67a95a5 to
8d052a6
Compare
|
I had to rebase because Fabri's commits were failing the CLA checker on the merge checks |
|
Closing so I can reopen this from my account. The merge queue squashes with the PR opener as author, and that author's CLA check fails. Same branch, same changes. |
|
Continued in #9639. |
…elastic#9639) Continues elastic#9035, which I closed and reopened from my account. The merge queue squashes a PR with the opener's name as author, and the original opener's CLA check fails there, so the queue kept rejecting it. The branch and changes are unchanged apart from the commit author and a rebase onto current `main`. The earlier approvals don't carry over. Original PR description > Sean Handley let me know today that the EIS catalog is adding decision models, under a new `Decision` task type. The first one, a Jina Decision model, launches next month. This PR gets the sheet-to-docs automation ready for it. > > The sync filters the `Type` column by exact match, so `Decision` rows would have been dropped silently. Sean confirmed it's a new type value and not a new column, so the fix is small. > > - `config.yml`: adds a `decision-models.csv` output that filters on `Decision`. > - `eis-supported-models.md`: adds a "Decision models" section with a `csv-include`. > - `decision-models.csv`: a header-only seed file, so the page builds before the sync generates real data. > - `sync_sheet.py`: `write_csv` now writes a header row when a filter matches nothing. Its comment already said so, but it wrote a 0-byte file. > > I built the docs locally with `docs-builder` (0 errors, 0 warnings). With no rows, the section renders a table with only its header row. I tested the `write_csv` change in isolation. I have not run the workflow end to end. > > The `Type` string `Decision` comes from Sean's message. The sheet has no `Decision` rows yet, so I couldn't confirm it there. Please check it when the first row lands. > > This isn't a draft, but don't merge it until the first Decision model row appears in the sheet, because merging today would publish an empty table. After merging, run the workflow with `dry_run` to confirm the CSV fills in. I left the unused `models.csv` alone; that cleanup can be a separate PR. > > Related to elastic/docs-eng-team#1130 > > 🤖 Generated with [Claude Code](https://claude.com/claude-code) > > --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sean Handley let me know today that the EIS catalog is adding decision models, under a new
Decisiontask type. The first one, a Jina Decision model, launches next month. This PR gets the sheet-to-docs automation ready for it.The sync filters the
Typecolumn by exact match, soDecisionrows would have been dropped silently. Sean confirmed it's a new type value and not a new column, so the fix is small.config.yml: adds adecision-models.csvoutput that filters onDecision.eis-supported-models.md: adds a "Decision models" section with acsv-include.decision-models.csv: a header-only seed file, so the page builds before the sync generates real data.sync_sheet.py:write_csvnow writes a header row when a filter matches nothing. Its comment already said so, but it wrote a 0-byte file.I built the docs locally with
docs-builder(0 errors, 0 warnings). With no rows, the section renders a table with only its header row. I tested thewrite_csvchange in isolation. I have not run the workflow end to end.The
TypestringDecisioncomes from Sean's message. The sheet has noDecisionrows yet, so I couldn't confirm it there. Please check it when the first row lands.I opened this as a draft because merging today would publish an empty table. I'd merge it when the first Decision model row appears in the sheet, then run the workflow with
dry_runto confirm the CSV fills in. I left the unusedmodels.csvalone; that cleanup can be a separate PR.Related to elastic/docs-eng-team#1130
🤖 Generated with Claude Code