Skip to content

Add Context Engine getting started tutorial - #8355

Merged
leemthompo merged 1 commit into
mainfrom
docs/context-engine-quickstart
Sep 18, 2026
Merged

leemthompo merged 1 commit into
mainfrom
docs/context-engine-quickstart

Conversation

@leemthompo

@leemthompo leemthompo commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Closes https://github.com/elastic/docs-content-internal/issues/1909

Summary

  • Add a minimal Context Engine landing page that links to a UI-led quickstart.
  • Cover enabling the feature, creating an AI index, adding an ESQL source, generating and reviewing a Knowledge Indicator, and testing it with an agent.
  • Support either existing Elasticsearch data or the Kibana ecommerce sample data.

Note

The Context Engine landing page and quickstart are currently hidden from the documentation navigation.

Review notes

This is an initial draft for Context Engine lead and SME review. The Agent Builder assignment flow, generated Workflow behavior, KI inspection, and refresh behavior still need end-to-end verification against the target release.

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

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

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs Style Checker (Vale)

Summary: 1 warning, 2 suggestions found

⚠️ Warnings (1): Fix when the suggestion improves clarity or correctness.
File Line Rule Message
explore-analyze/ai-features/context-engine/quickstart.md 106 Elastic.Spelling 'dataset's' is a possible misspelling.
💡 Suggestions (2): Optional style improvements. Apply when helpful.
File Line Rule Message
explore-analyze/ai-features/context-engine/quickstart.md 137 Elastic.WordChoice Consider using 'run, start' instead of 'execute', unless the term is in the UI.
explore-analyze/ai-features/context-engine/quickstart.md 190 Elastic.Wordiness Consider using 'remove' instead of 'eliminate'.

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.

@leemthompo leemthompo self-assigned this Sep 17, 2026
@leemthompo

Copy link
Copy Markdown
Member Author

This page is hidden and will be totally overwritten subsequently, but provides a nice URL for quickstart bug bashes etc.

@leemthompo
leemthompo marked this pull request as ready for review September 18, 2026 09:08
@leemthompo
leemthompo requested a review from a team as a code owner September 18, 2026 09:08
@leemthompo
leemthompo marked this pull request as draft September 18, 2026 09:11
@leemthompo
leemthompo force-pushed the docs/context-engine-quickstart branch from ff8723f to 4105a68 Compare September 18, 2026 09:20
@leemthompo leemthompo changed the title Add Context Engine getting started tutorial Add Context Engine getting started tutorial, update CODEOWNERS Sep 18, 2026
@leemthompo
leemthompo force-pushed the docs/context-engine-quickstart branch from 4105a68 to 44adadc Compare September 18, 2026 09:25

@florent-leborgne florent-leborgne 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.

rubberstamp since hidden page

@leemthompo
leemthompo force-pushed the docs/context-engine-quickstart branch from 44adadc to be8b061 Compare September 18, 2026 10:06
@leemthompo
leemthompo marked this pull request as ready for review September 18, 2026 10:07
@leemthompo leemthompo changed the title Add Context Engine getting started tutorial, update CODEOWNERS Add Context Engine getting started tutorial Sep 18, 2026
@leemthompo
leemthompo added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 2a323b7 Sep 18, 2026
11 checks passed
@leemthompo
leemthompo deleted the docs/context-engine-quickstart branch September 18, 2026 11:28
github-merge-queue Bot pushed a commit that referenced this pull request Sep 20, 2026
Every `/docs-review` run on this repo is currently failing, and no
review is being posted. Five PRs hit it in the last few minutes (#8355,
#8353, #8351, #8349, #8348).

The failure is in the `activation` job, at the step `Validate
ANTHROPIC_API_KEY secret`. `activation` fails, `agent` is skipped, and
the run reports a green-ish mixed state while doing nothing.

## Cause

The docs review workflow moved from the Copilot engine to the Claude
engine via OpenRouter. Copilot ran on `copilot-requests` credits and
needed no secret, so this caller never had a `secrets:` block. The
Claude engine reads `${{ secrets.OPENROUTER_API_KEY }}` inside its
engine env, and a reusable workflow does not inherit caller secrets
unless they are passed explicitly.

So the secret resolved to empty, and validation failed before the agent
started.

## Fix

Pass the secret through:

```yaml
    secrets:
      OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
```

`OPENROUTER_API_KEY` already exists as a repo secret here, and `v1`
declares it under `on.workflow_call.secrets`, so explicit pass-through
is valid. No secret needs creating.

## Verifying

Re-trigger the docs review checkbox on any open PR. The `activation` job
should succeed and `agent` should run instead of being skipped.

Worth checking the same block in any other repo that calls
`gh-aw-docs-review.lock.yml@v1` — the same caller change is needed
wherever the workflow was previously running on Copilot.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Docs review summary

Criteria

  • User focus: The tutorial has a clear objective, a "Before you begin" prerequisites section, numbered steps, and checkpoints throughout — solid learner-facing structure. The landing page (context-engine.md) is an explicit minimal stub while the page is hidden.
  • Technical accuracy: Not independently verified against product HEAD in this review. The PR description itself already flags that the Agent Builder assignment flow, generated Workflow behavior, KI inspection, and refresh behavior still need end-to-end verification against the target release.
  • Applicability: applies_to tagging is consistent between the two files, uses a single dimension (stack/serverless), and doesn't use the deprecated ess key.
  • Maintainability: One naming collision found — see inline comment on quickstart.md:26. "Knowledge Indicator (KI)" is already a defined term for an unrelated concept in the existing, published Observability Streams docs.
  • Language: Vale's automated pass already covers the outstanding word-choice and spelling items on this page; no new language issues beyond those.
  • Style: Formatting, admonition usage, and heading structure are consistent with the rest of the section.
  • Issue satisfaction: Not applicable — no linked issue.

Nits

  • Neither file sets a type: frontmatter field. A sibling tutorial in the same directory (agent-builder-api-tutorial.md) sets type: tutorial; worth adding once this page comes out of draft.
  • applies_to uses stack: preview 9.6; the open-ended 9.6+ form better conveys "available from this minor onward" once the shipping minor is confirmed.

Notes

  • This PR is already merged and carries a maintainer approval noting "rubberstamp since hidden page," and the author confirmed in a PR comment that this page "will be totally overwritten subsequently." Given that context, this review focuses on the one substantive finding (the Knowledge Indicator naming collision) that's worth resolving before the page comes out of hidden/draft status, rather than re-litigating cosmetic details on a page known to be temporary.

Generated by Docs review agent for #8355 · claude · sonnet · 206.8 AIC · ⊞ 19K


You will create an AI index containing one Knowledge Indicator about a dataset you select.

A Knowledge Indicator (KI) is a document generated from source data, stored in an AI index, and retrieved as context by agents to help answer questions. A KI can contain distilled findings, explanations of how to interpret the data, limitations, and verified ESQL queries for retrieving current information from the source.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"A Knowledge Indicator (KI) is a document generated from source data, stored in an AI index, and retrieved as context by agents" — this reuses a name that's already defined elsewhere in the docs for a different feature. Elastic Observability Streams has its own Knowledge Indicators (and the Significant Events variant): structured facts (Feature KIs and Query KIs) that Elastic auto-extracts from raw log data, with their own data model, confidence scoring, and expiry lifecycle. That's a different concept from the document-based, agent-context KI defined here.

Two unrelated features sharing "Knowledge Indicator (KI)" sets up a real collision for readers who already know the Streams term. Confirm with the Context Engine and Streams teams whether the name reuse is intentional. If not, the Context Engine concept needs a distinct name before this page comes out of draft.

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.

2 participants