Merge nucleic/plucky-north-vole-sdna into dev
This commit is contained in:
+6
-1
@@ -217,7 +217,12 @@ def attach_first_responses(
|
||||
continue
|
||||
previous = responses.get(turn.session_id)
|
||||
if previous is not None:
|
||||
raise DataError(f"ambiguous assistant response after first prompt in session {turn.session_id!r}")
|
||||
# The dataset can contain multiple transcript rows at one conversational
|
||||
# ordinal. `turn_number` is the documented checked tie-breaker; retain the
|
||||
# earliest actual response and make the condition visible in the funnel.
|
||||
funnel["multipleAssistantResponsesAtFirstResponseOrdinal"] += 1
|
||||
if (turn.turn_number, turn.turn_id) >= (previous.turn_number, previous.turn_id):
|
||||
continue
|
||||
responses[turn.session_id] = turn
|
||||
|
||||
preliminary: list[Candidate] = []
|
||||
|
||||
Reference in New Issue
Block a user