Skip to content

Systems and records

Segment specific knowledge dataset: keep who each answer applies to

By SourceX Editorial · Updated

9 sections

Short answer

A segment specific knowledge dataset keeps each answer's applicability attached to it: plan, deployment, region or version, at the level where it was written. In Elastic's documentation at a pinned commit, 657 of 2,705 pages change scope inside the page and 118 shared snippets appear under different page scopes. In ConditionalQA, 34.5% of answerable questions have conditional or multiple answers.

System export

Segment specific knowledge

This page covers segment specific knowledge dataset: keep who each answer applies to.Illustrative

Key takeaways

  • Keep scope as fields at page, section and sentence level; chunking and markup stripping drop the inner levels first.
  • In Elastic's docs at commit 34f9c1e, 657 of 2,705 pages change scope inside the page, through 2,442 inline tags, 615 section tags and 362 switches.
  • Shared text breaks text-hash deduplication: 118 Elastic snippets appear on pages with different scopes.
  • In ConditionalQA, 868 of 2,518 answerable questions have conditional or multiple answers, and 28.1% of yes or no answers carry conditions.
  • Store visibility and applicability separately, mark missing scope as unknown, and test with contrast pairs across segments.

Why does a correct internal answer fail the wrong customer?

An internal answer fails the wrong customer when the conditions that made it true stay behind in the source while the answer travels: into an FAQ, a macro, a chunk in a retrieval index or a training example. The text is accurate; what got lost is the line saying it holds only for one plan, one deployment type, one region or one version.

Consider an illustrative case. An internal FAQ says customers can export audit logs to their own storage, which is true for an enterprise plan hosted in one region and false for a starter plan everywhere. Nothing in the answer contradicts anything else in the knowledge base, so a conflict check passes it, and the agent asking has permission to read it, so an access check passes it too. The model answers confidently and wrongly, because nobody kept the scope with the sentence.

Knowledge-management practice has long treated scope as part of the answer. The KCS methodology from the Consortium for Service Innovation gives every article an environment section covering the products, platforms, geography and configuration involved, and its guide to simple templates says 'environment statements will be true before and after the issue is resolved', which is why they are what separates similar-looking articles. A segment specific knowledge dataset is the training and evaluation version of that idea: every answer carries its environment.

Where does scope live in a real documentation set?

In a large, carefully tagged documentation set, scope sits at every level from the page down to the single sentence. Elastic's documentation repository is a useful test because it writes one page per feature for all versions and deployment types and marks applicability in metadata: its contributor guide says there is no longer a new documentation set published with every minor release, so 'the same page stays valid over time and shows version-related evolutions.'

The guide makes a page-level applies_to tag 'mandatory for every page', adds section-level tags after headings and inline tags inside sentences, and offers an applies switch, tabs that each carry a scope badge, for content that varies by deployment type or version. It also tells writers not to tag 'every paragraph/section when the applicability has been established earlier on the page', which means untagged text inherits its scope from above.

We counted the repository at commit 34f9c1e (27 October 2026), using 2,705 content pages after dropping snippet files, writer guidance and top-level files. Of those pages, 2,628 carry a page-level tag and 1,814 (67.1%) name two or more targets, such as the Elastic Stack and Serverless or several deployment types. And 657 pages (24.3%) change scope inside the page: 459 use 2,442 inline tags, 306 use 615 section tags and 169 use 362 applies switches with 772 tabs between them, counting switch and include lines indented inside lists.

Those inner tags are the ones an export is most likely to lose. A pipeline that keeps page metadata but cuts pages into chunks at headings will carry the page's targets onto a paragraph that was narrowed by a section tag, and a pipeline that strips markup will delete inline tags altogether, leaving a sentence about one version looking as if it applied to all of them.

When the same paragraph serves two segments

Reused text is the second way scope gets lost, because identical words can be true for different audiences depending on where they appear. Elastic builds many pages from shared snippet files. Of the 300 snippet files that content pages include, 249 are included by two or more pages, and 118 of those (47.4%) appear on pages whose page-level target sets differ; 247 pages include at least one such snippet.

One terminology snippet for remote clusters, for example, is included on 16 pages that carry 9 different page-level scopes, from a single deployment type to five targets at once. A dataset builder who deduplicates knowledge chunks by text hash keeps one copy and one scope, and silently assigns that scope to every reader.

Negative scope deserves the same care. In the same repository, 141 pages carry a page-level target marked unavailable and 97 pages contain 172 tags in the page body (inline, section or switch tabs) marked unavailable, statements that something does not exist for a given deployment or project type. 'Not available on this plan' is as segment specific as any positive instruction, and it is easy to invert once the qualifier disappears.

How often do answers depend on conditions? Evidence from ConditionalQA

In a public benchmark built on government guidance, about a third of answerable questions have a conditional answer or more than one answer. ConditionalQA, released in 2021 with questions about UK public policies posed from residents' scenarios, asks a model to return an answer and, when the answer holds only under conditions the scenario does not settle, the conditions too, according to the paper's abstract.

We counted the released train and development files at commit 77bd295. Of 2,623 questions, 2,518 are answerable. Of those, 613 (24.3%) have at least one answer tied to conditions, 562 (22.3%) have two or more answers, and 868 (34.5%) are one or the other. Yes and no answers are not immune: 408 of the 1,453 yes or no answers (28.1%) come with conditions, against 825 of all 3,541 answers (23.3%), so the shortest, most quotable answers are slightly more likely than others to need a qualifier.

The documents behind the questions show the same structure on the source side. Of the 652 gov.uk pages in the release, 441 (67.6%) contain at least one heading that begins with 'If', 1,740 such headings in all, from sections that open with an applicability condition. The paper's authors report that existing models find the task hard, especially when they must predict the conditions along with the answer, which is the behavior a segment-aware assistant needs.

The applicability map for a segment specific knowledge dataset

Keep scope at the level where it was written, and keep it as fields rather than as prose a pipeline can strip. The map below lists each scope signal, how often it occurs in Elastic's documentation at commit 34f9c1e, what a chunk loses without it and the field a dataset should carry. The counts measure tagging practice in one public documentation set; they do not measure how often enterprise knowledge bases contain each signal, which no public census we found reports.

Read the rows as a checklist for any knowledge export: each one is a way an answer can travel without the condition that made it true:

The applicability map for a segment specific knowledge dataset
Scope signalElastic docs at 34f9c1eWhat a chunk loses without itField to keep
Page scope2,628 of 2,705 pages tagged; 1,814 name 2 or more targetsWhich plans, deployments or products the whole page coversPage scope list, inherited by every chunk
Section scope615 section tags in 306 pagesA narrower condition that starts at a headingSection scope with an inheritance flag
Sentence scope2,442 inline tags in 459 pagesWhich sentence applies to which version or deploymentScoped spans inside the chunk
Alternative answers362 switches with 772 tabs in 169 pagesDifferent answers to one question, one per segmentAnswer variants keyed by segment
Negative scope141 page tags and 172 body tags marked unavailableThat a feature does not exist for a segmentUnavailable flag per segment
Shared text118 snippets reused under different page scopesThat identical words are true for different audiencesSnippet ID plus the including page's scope
Lifecycle and version377 pages with a non-GA state; 433 with a version numberPreview, deprecated or removed status by versionLifecycle state and version range
A diagram of one documentation page with nested scope layers and their counts in Elastic's docs at commit 34f9c1e: page tags on 2,628 pages, 615 section tags, 2,442 inline tags, 362 switches with 772 tabs, and 118 shared snippets reused under different scopes; 657 of 2,705 pages change scope inside the page.
Elastic docs-content at commit 34f9c1e, 2,705 content pages. Source: elastic/docs-content; SourceX count.

Who may read an article is not who it is true for

Help center segments control who may read an article; they do not say for whom the article is correct. Zendesk's documentation describes user segments that limit viewing to signed-in users, agents and admins, or custom groups defined by tags, organizations or groups, with view permissions set on each article. It also notes that restricted content appears in AI agent answers only when the end user belongs to a segment allowed to view the article.

Both properties are worth keeping, but they answer different questions. An article visible to every customer can still describe a feature that only one plan has, and an article restricted to enterprise organizations can hold guidance that is true for everyone. A dataset that uses visibility as a stand-in for applicability will teach a model to withhold correct general answers and to serve narrow ones to anyone allowed to see them.

Keep them as separate fields: who may see the article, from the help center's permission settings, and whom its statements apply to, from the article's environment, scope tags or conditions. The permission-aware evaluation guide linked below covers the first; this page is about the second.

How should a buyer test segment-aware answers?

Test whether a system keeps an answer inside its segment, not only whether the answer text is right. The counts above suggest where to aim: inherited section scope, inline qualifiers, shared snippets and negative statements.

At a glance

How should a buyer test segment-aware answers

A test set built from scoped knowledge records can include the following checks:

  • Contrast pairs: ask the same question as two customers in different segments and score each against its own gold answer; a system that gives both the same answer fails at least one.
  • Missing segment: when the question does not reveal the plan, region or version and the answer depends on it, the correct behavior is to ask or to give the conditional answer, as ConditionalQA requires.
  • Scope retention: build the retrieval index from chunks cut at headings, with markup stripped as a production pipeline would, and check whether section and inline scope survive into the answer.
  • Negative scope: include questions whose correct answer is that a feature is unavailable for the asker's segment, and score answers that describe how to use it as wrong.
  • Deduplication: include snippets that appear under different scopes and confirm that the index kept each copy with its own scope.
  • Report the wrong-segment answer rate separately from accuracy: an answer correct for some customer but not this one is the failure this dataset exists to catch.

Can a model infer the segment from context instead?

Sometimes, and that is the strongest alternative explanation for why scope metadata seems unnecessary: a retrieved paragraph often mentions its product or version, and a capable model can read that. The counts argue against relying on it. Elastic's guide tells writers not to repeat scope once a page has established it, so a narrowed paragraph need not restate its condition, and inline tags are often the only marker of which version a sentence describes.

Absence of a tag is also not evidence of universality. The same guide calls applies_to tags 'scope signals for readers, not comprehensive metadata', and says general content that applies to all contexts does not need them; 77 of the 2,705 pages we counted carry no page-level tag although the guide makes one mandatory. A dataset should mark scope as unknown where no signal exists, not as all segments.

The evidence has limits. Elastic's tags record what writers chose to tag, not whether each statement is correct for its scope. ConditionalQA covers UK government guidance, with crowd-written scenarios, and its own README warns that answers are not verified by legal professionals. Neither tells us how often an enterprise FAQ is reused across segments; that has to be measured in each company's records.

What to request with segment-scoped knowledge records

Ask for knowledge records with their scope attached at every level: page or article scope, section and sentence qualifiers, answer variants by segment, snippet or macro IDs with the places they are reused, and the version history showing when scope changed. Ask separately for visibility settings, so applicability and permission never get merged.

The most useful extra join is to support history: tickets linked to the articles used to answer them, with the customer's plan, region and product version at the time, pseudonymized. Those links show which segment actually asked, and they supply the contrast pairs a test needs.

SourceX licenses business data directly from companies and sources datasets on request, so a buyer can specify the scope fields, the segments that must be represented and an acceptance test, such as the wrong-segment answer rate on held-out contrast pairs, on the request-data form. Before any article or ticket is delivered, the company that holds them approves the scope and terms and signs the agreement.

Frequently asked questions

What is a segment specific knowledge dataset?

It is a set of knowledge answers, such as FAQ entries, help articles or runbook steps, in which every answer carries the conditions under which it holds: plan, deployment type, region, product version or lifecycle state. It lets a model learn and be tested on giving each customer the answer that applies to them.

How is applicability different from access permissions?

Permissions say who may read an article; applicability says for whom its statements are true. A help center can restrict an article to one customer group while its guidance applies to everyone, or show an article to all customers that only one plan can use. Keep the two as separate fields.

Should untagged knowledge be treated as applying to everyone?

No. In Elastic's documentation, untagged paragraphs usually inherit scope from earlier on the page, and the contributor guide calls its tags scope signals rather than comprehensive metadata. Mark scope as unknown where no signal exists, and inherit it explicitly where the page sets it.

How do I test whether a RAG system keeps segment scope?

Use contrast pairs: the same question from customers in different segments, each with its own gold answer, plus questions where the segment is missing and the right move is to ask. Build the index the way production does, with chunking and markup stripping, and report the wrong-segment answer rate.

How common are conditional answers?

In ConditionalQA, built on UK government guidance, 868 of 2,518 answerable questions (34.5%) have answers tied to conditions or more than one answer. Enterprise rates are unpublished and need to be measured in each company's own records.

Sources

  • Elastic's docs-content repository at commit 34f9c1e, counted for this article: page, section and inline applies_to tags, applies switches and shared snippets across 2,705 content pages. Source
  • Elastic's contributor guide explains cumulative documentation, makes page-level applies_to tags mandatory and says not to repeat scope once a page has established it. Source
  • Elastic's syntax reference describes page, section and inline scope tags and applies switches, and calls the tags scope signals rather than comprehensive metadata. Source
  • ConditionalQA's released files at commit 77bd295, counted for this article, and its README's warning that answers are not legally verified. Source
  • The ConditionalQA paper describes questions about UK public policies whose answers can hold only under conditions the model must return. Source
  • KCS guidance gives each article an environment section whose statements stay true before and after the issue is resolved. Source
  • Zendesk user segments restrict who can view help center articles by sign-in status, tags, organizations or groups. Source
  • Zendesk shows restricted help center content in AI agent answers only to end users in a segment allowed to view it. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies