data_juicer.ops.mapper.dialog_topic_shift_mapper module#

LLM: new topic vs stale thread (1–5).

Inspired by OpenJudge topic-shift ideas; DJ: no shift → score vs current query.

Reference: https://agentscope-ai.github.io/OpenJudge/built_in_graders/multi_turn/ #topicswitchgrader

class data_juicer.ops.mapper.dialog_topic_shift_mapper.DialogTopicShiftMapper(*args, **kwargs)[source]#

Bases: _DialogTurnQualityMapper

Focus on new topic vs clinging to an obsolete thread.

OP_NAME = 'dialog_topic_shift_mapper'#
META_KEY = 'dialog_topic_shift'#