Skip to content

Commit 8cca1cd

Browse files
committed
only export annotations from runs using the demo prompt set, for now
1 parent b60aead commit 8cca1cd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/modelbench/benchmark_runner.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ def compile_annotations(self) -> list:
242242
test, hazard, locale, prompt_set, version = full_hazard_string.split("-")
243243
except:
244244
hazard = full_hazard_string
245+
prompt_set = "unknown"
246+
# most prompts and annotations can't be shared. Until we have per-prompt shareability info,
247+
# we only export annotations for items from the demo prompt.
248+
# TODO fix this when we have per-prompt shareability info
249+
if prompt_set != "demo":
250+
continue
245251
for item in items: # this is a TestRunItem
246252
for _, annotation in item.annotations.items():
247253
ann = {

0 commit comments

Comments
 (0)