﻿# Doc2Dial: grounding a dialogue turn in a document span and its conditions

Understand Doc2Dial document spans, dialogue acts, condition-versus-solution construction and the release-specific labels required for grounded response evaluation.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-doc2dial-span-grounded-turn/
Language: en

Doc2Dial is a goal-oriented document-grounded dialogue dataset. Its construction links document content and dialogue scenes so a conversation can clarify conditions, provide information and respond using a relevant solution. It is useful for evaluating an assistant that must follow a document's applicability structure, rather than quote any topically similar passage.

## Preserve the document-span map

Document records include content and span information, while dialogue references point back to grounding material. Keep those relationships through text cleanup and tokenization. For an illustrative service-policy answer, the qualifying condition and the proposed action may occur in different spans. A conversion that keeps only the action can create a misleading supervised response.

## Distinguish conditions from solutions

The author description roughly labels source content as conditional context or relevant solution for constructing scenes. These labels explain the data-generation setup; they should not be inflated into a complete formal policy language. Inspect the actual turn and document before treating the label as an executable rule for a deployed assistant.

## Keep dialogue acts and roles

A user denying a condition has a different meaning from an agent asking whether it applies. Preserve speaker role, action and turn order. Removing them can reverse the interpretation of a short yes/no utterance. Evaluate whether the system uses the established condition when selecting its response, not merely whether its final text resembles a reference sentence.

## Pin the annotation version

The project description distinguishes older dialogue-act annotations from simplified labels in the later release. Save the dataset version and the actual label vocabulary used. Mixing versions can make a valid action appear unknown or map several distinct old labels into an unexplained new category. Report any local remapping as a transformation.

## Evaluate applicability as well as grounding

A response can quote a real source while applying the wrong procedure to the user's stated situation. Include such cases in a separately described behavioral inspection. Preserve the original splits and distinguish gold-grounding input from independently retrieved context. The publisher card supplies another structured representation, with a script-dependent loading warning to account for. Doc2Dial is useful when document spans, conversation state and release-specific actions remain connected throughout training and evaluation.

## Primary references

[Doc2Dial original paper](https://arxiv.org/abs/2011.06623).

[Doc2Dial official data description](https://doc2dial.github.io/data.html).

[Doc2Dial IBM dataset card](https://huggingface.co/datasets/IBM/doc2dial).

Related explanations: [document span provenance](/journal/document-markdown-json-provenance/); [using retrieved knowledge](/journal/parametric-retrieved-knowledge-conflict/).
