Datasets:

Languages:
Chinese
Size Categories:
100K<n<1M
ArXiv:
License:
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    ValueError
Message:      Not able to read records in the JSON file at hf://datasets/thu-coai/Safety-Prompts@559ab9f24ce4621e3f839ef05e1075b6c4f125ee/instruction_attack_scenarios.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['Reverse_Exposure', 'Goal_Hijacking', 'Prompt_Leaking', 'Unsafe_Instruction_Topic', 'Role_Play_Instruction', 'Inquiry_With_Unsafe_Opinion']. Select the correct one and provide it as `field='XXX'` to the dataset loading method. 
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows_from_streaming.py", line 132, in compute_first_rows_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 2211, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1235, in _head
                  return _examples_to_batch(list(self.take(n)))
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1384, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1040, in __iter__
                  yield from islice(self.ex_iterable, self.n)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 282, in __iter__
                  for key, pa_table in self.generate_tables_fn(**self.kwargs):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 161, in _generate_tables
                  raise ValueError(
              ValueError: Not able to read records in the JSON file at hf://datasets/thu-coai/Safety-Prompts@559ab9f24ce4621e3f839ef05e1075b6c4f125ee/instruction_attack_scenarios.json. You should probably indicate the field of the JSON file containing your records. This JSON file contain the following fields: ['Reverse_Exposure', 'Goal_Hijacking', 'Prompt_Leaking', 'Unsafe_Instruction_Topic', 'Role_Play_Instruction', 'Inquiry_With_Unsafe_Opinion']. Select the correct one and provide it as `field='XXX'` to the dataset loading method.

Need help to make the dataset viewer work? Open a discussion for direct support.

Dataset Card for Dataset Name

GitHub Repository: https://github.com/thu-coai/Safety-Prompts

Paper: https://arxiv.org/abs/2304.10436

Downloads last month
57
Edit dataset card