Repository navigation
Add Context Engine getting started tutorial - #8355
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)Summary: 1 warning, 2 suggestions found
|
| 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.
|
This page is hidden and will be totally overwritten subsequently, but provides a nice URL for quickstart bug bashes etc. |
ff8723f to
4105a68
Compare
4105a68 to
44adadc
Compare
florent-leborgne
left a comment
There was a problem hiding this comment.
rubberstamp since hidden page
44adadc to
be8b061
Compare
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
There was a problem hiding this comment.
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
HEADin 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_totagging is consistent between the two files, uses a single dimension (stack/serverless), and doesn't use the deprecatedesskey. - 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) setstype: tutorial; worth adding once this page comes out of draft. applies_tousesstack: preview 9.6; the open-ended9.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. |
There was a problem hiding this comment.
"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.
Closes https://github.com/elastic/docs-content-internal/issues/1909
Summary
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.