We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc0605 commit c5c5ae2Copy full SHA for c5c5ae2
1 file changed
agentic_security/probe_data/data.py
@@ -248,6 +248,7 @@ def load_jailbreak_v28k() -> ProbeDataset:
248
@cache_to_disk()
249
def load_local_csv() -> ProbeDataset:
250
"""Load prompts from local CSV files."""
251
+ os.makedirs("./datasets", exist_ok=True)
252
csv_files = [f for f in os.listdir("./datasets") if f.endswith(".csv")]
253
logger.info(f"Found {len(csv_files)} CSV files: {csv_files}")
254
@@ -337,7 +338,9 @@ def transform(self) -> Iterator[ProbeDataset]:
337
338
continue
339
340
# Convert async generator (if any) to a list
- prompts = list(dataset.prompts) if hasattr(dataset.prompts, '__iter__') else []
341
+ prompts = (
342
+ list(dataset.prompts) if hasattr(dataset.prompts, "__iter__") else []
343
+ )
344
size = len(prompts)
345
346
if size == 0:
0 commit comments