Skip to content

[EIS] Add Decision models to the sheet sync and supported models page - #9035

Closed
theletterf wants to merge 2 commits into
mainfrom
eis-decision-models
Closed

theletterf wants to merge 2 commits into
mainfrom
eis-decision-models

Conversation

@theletterf

Copy link
Copy Markdown
Contributor

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.

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_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

@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@github-actions

Copy link
Copy Markdown
Contributor

✅ 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.

@theletterf

Copy link
Copy Markdown
Contributor Author

+CC @elastic/developer-docs @seanhandley Ready to merge when the new Decision models come out.

@seanhandley
seanhandley marked this pull request as ready for review November 24, 2026 10:13
@seanhandley
seanhandley requested review from a team as code owners November 24, 2026 10:13
@seanhandley
seanhandley requested a review from akira28 November 24, 2026 10:13
@seanhandley seanhandley self-assigned this Nov 24, 2026

@leemthompo leemthompo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Cursor flagged the following operational caveats—I'm sure we're already aware:

  • Merging before the sheet has a Decision row and a sync run will temporarily show an empty Decision models table (headers only) on the live page.
  • Verify the sheet's Type value is literally "Decision" (case-sensitive) via a dry_run of 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.

alexandra5000 pushed a commit to alexandra5000/docs-content that referenced this pull request Nov 25, 2026
## 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>
@leemthompo
leemthompo enabled auto-merge November 26, 2026 14:51
@leemthompo
leemthompo added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@leemthompo
leemthompo added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@leemthompo
leemthompo added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
leemthompo and others added 2 commits November 26, 2026 17:29
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>
@leemthompo

Copy link
Copy Markdown
Member

I had to rebase because Fabri's commits were failing the CLA checker on the merge checks

@leemthompo
leemthompo added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@leemthompo

Copy link
Copy Markdown
Member

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.

@leemthompo

Copy link
Copy Markdown
Member

Continued in #9639.

@leemthompo
leemthompo deleted the eis-decision-models branch November 26, 2026 16:56
lcawl pushed a commit to lcawl/docs-content that referenced this pull request Nov 27, 2026
…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>
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.

4 participants