[wip] feat: docs ai - Conversational search#33919
Draft
onceLearner wants to merge 47 commits intomasterfrom
Draft
[wip] feat: docs ai - Conversational search#33919onceLearner wants to merge 47 commits intomasterfrom
onceLearner wants to merge 47 commits intomasterfrom
Conversation
Contributor
8a759ad to
584e88f
Compare
4fc6f59 to
15cc2f2
Compare
0aedece to
85a5e37
Compare
0a203d9 to
8b9da98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do? What is the motivation?
Adds Docs AI [ Conversational Search] to the docs site, gated behind a feature flag.
Core implementation
New UI templates:
layouts/partials/conversational-search.html(dialog shell, empty state, message actions).New JS module:
assets/scripts/components/conversational-search.jsto render/clone templates, manage chat lifecycle (new question/reset), message actions (copy + thumbs), resources/source chips, and link formatting.Instantsearch integration:
Feature flags via OpenFeature + Datadog provider:
assets/scripts/helpers/feature-flags.jswith a singleton init.Observability:
feature_flagsfor tracking.Build/dependency updates:
markedto v17 and switches import usage to the UMD build for CommonJS scripts.highlight.js+marked-highlight.embeddingfrom Typesense payloads.User-facing entry points
“Ask AI” button (global) that opens a modal sidebar chat.
Homepage hero CTA (“Ask AI” beside search) when the flag is enabled.
Search dropdown: injects an AI suggestion row (“Ask AI about ‘’”) that is keyboard-navigable and triggers the chat on Enter/click.
Motivation
Ship a controlled Docs AI preview to improve discovery and reduce search friction, while measuring adoption/latency/click-through via RUM/logs and rolling out safely with flags.
Merge instructions
Merge readiness:
Notes before merging:
master→ rebase/mergemasterbefore final merge.Additional notes
Commit highlights (high level):
embeddingexclusion).