Skip to content

[Workflows] Document category descriptions for the ai.classify step - #7644

Draft
nastasha-solomon wants to merge 2 commits into
mainfrom
issue-7355
Draft

[Workflows] Document category descriptions for the ai.classify step#7644
nastasha-solomon wants to merge 2 commits into
mainfrom
issue-7355

Conversation

@nastasha-solomon

@nastasha-solomon nastasha-solomon commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

Documents the ai.classify step's new support for category descriptions (9.5 and Serverless): categories and fallbackCategory now accept either a plain category-name string or an object with name and description. When a description is supplied, it's included in the classification prompt sent to the model, improving category selection for closely related or ambiguous categories. This is a backward-compatible, additive change to the documented YAML schema — plain strings still work.

Fixes #7355.

Previews

  • AI steps | ai.classify: Updated parameter table showing categories and fallbackCategory accept a plain string or a { name, description } object, plus a new "Example: Category descriptions" section.

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes - Claude Code
  • No

@nastasha-solomon nastasha-solomon self-assigned this Jul 29, 2026
@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 Jul 29, 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.

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.

[Security][Workflows][9.5 & Serverless] Add descriptions to ai.classify categories for more accurate AI classification

1 participant