We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f80f5d commit a8e900dCopy full SHA for a8e900d
1 file changed
scripts/response_regeneration/script.py
@@ -115,7 +115,8 @@ def load_seen(path: str):
115
obj = json.loads(line)
116
except json.JSONDecodeError:
117
continue
118
- key = obj.get("uuid") or obj.get("idx")
+ # Match the actual output format: "id" field and "idx" in metadata
119
+ key = obj.get("id") or obj.get("metadata", {}).get("idx")
120
if key is not None:
121
seen.add(str(key))
122
return seen
@@ -296,7 +297,8 @@ async def main():
296
297
298
299
uuid = row.get("uuid")
- key = str(uuid or index)
300
+ # Match the ID format used in output: uuid or "sample_{index}"
301
+ key = str(uuid) if uuid else f"sample_{index}"
302
if key in seen_ids:
303
304
0 commit comments