Repository navigation
Conversation
Only 15 of 6,989 internal pages carry a product, so a productFilter silently drops almost every relevant page and still returns a confident top hit. The internal profile now leaves the parameter out of its search tool schemas. The public profile keeps it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5110/ |
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.
The internal docs MCP no longer offers
productFilteronsearch_internal_docsandfind_related_internal_docs, because it drops nearly every internal page. The public server keeps it.Affects: MCP
Prompt summary: Improve how well the Elastic Internal Docs MCP finds the right page, starting from an 18-call evaluation of its tools. This PR is the first change that the index measurements support.
Why
On the production internal index, 15 of 6,989 pages have
related_productsand 9 haveproduct(about 0.2%). AproductFilterofkibanaon "release process" returned 9 hits, and the top one was an unrelated page. The agent gets a confident answer and never learns that the filter hid the Kibana team's real release pages.sectionFilterand a product name in the query both work on internal pages.What
Profile switch
McpServerProfilegainsOffersProductFilter. It istruefor the public profile andfalsefor the internal one.Tool schema
McpToolRegistrationpasses the flag to the SDK schema options, so theproductFilterparameter is absent from the internal search tools. The tool classes and the public schemas stay the same, and no snapshot changes.Out of scope: the result date. #5108 already moves search results to
content_last_updated. Ranking changes for generated mirrors and a "no keyword match" signal follow separately.Verify
dotnet test --project tests/Mcp.Remote.TestsMcpToolSchemaTestschecks both profiles. Setting the internal flag totruemakes it fail.