size_categories:10K<n<100K format:parquet modality:text library:datasets library:dask library:mlcroissant library:polars library:distilabel region:us synthetic distilabel rlaif
---
size_categories: n<1K
dataset_info:
  features:
  - name: instruction
    dtype: string
  - name: response
    dtype: string
  - name: instruction_id_list
    sequence: string
  - name: distilabel_metadata
    struct:
    - name: raw_input_i_f_eval_kwargs_assignator_0
      list:
      - name: content
        dtype: string
      - name: role
        dtype: string
    - name: raw_output_i_f_eval_kwargs_assignator_0
      dtype: string
  - name: model_name
    dtype: string
  - name: kwargs
    dtype: string
  splits:
  - name: train
    num_bytes: 537367698
    num_examples: 61492
  download_size: 80046601
  dataset_size: 537367698
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
tags:
- synthetic
- distilabel
- rlaif
---

<p align="left">
  <a href="https://github.com/argilla-io/distilabel">
    <img src="https://raw.githubusercontent.com/argilla-io/distilabel/main/docs/assets/distilabel-badge-light.png" alt="Built with Distilabel" width="200" height="32"/>
  </a>
</p>

# Dataset Card for AutoIF-instruct-61k-AutoIF-id-kwargs-full

This dataset has been created with [distilabel](https://distilabel.argilla.io/).



## Dataset Summary

This dataset contains a `pipeline.yaml` which can be used to reproduce the pipeline that generated it in distilabel using the `distilabel` CLI:

```console
distilabel pipeline run --config "https://huggingface.co/datasets/KJHub/AutoIF-instruct-61k-AutoIF-id-kwargs-full/raw/main/pipeline.yaml"
```

or explore the configuration:

```console
distilabel pipeline info --config "https://huggingface.co/datasets/KJHub/AutoIF-instruct-61k-AutoIF-id-kwargs-full/raw/main/pipeline.yaml"
```

## Dataset structure

The examples have the following structure per configuration:


<details><summary> Configuration: default </summary><hr>

```json
{
    "distilabel_metadata": {
        "raw_input_i_f_eval_kwargs_assignator_0": [
            {
                "content": "You will receive a list of constraints and an instruction. The instruction contains constraints. Your task is to generate the appropriate arguments for each constraint type.\n\n## Constraint types, descriptions, and arguments\n\n1. keywords:existence - Checks if specific keywords are present in the response.\n   - keywords: List[str]\n\n2. keywords:frequency - Verifies if a keyword appears a certain number of times in the response.\n   - keyword: str\n   - frequency: int\n   - relation: str\n\n3. keywords:forbidden_words - Ensures that specified words are not used in the response.\n   - forbidden_words: List[str]\n\n4. keywords:letter_frequency - Checks if a particular letter appears a certain number of times in the response.\n   - letter: str (single letter)\n   - let_frequency: int\n   - let_relation: str\n\n5. language:response_language - Verifies that the entire response is in a specified language.\n   - language: str (ISO 639-1 language code)\n\n6. length_constraints:number_sentences - Checks if the response contains a specific number of sentences.\n   - num_sentences: int\n   - relation: str\n\n7. length_constraints:number_paragraphs - Verifies that the response has a particular number of paragraphs.\n   - num_paragraphs: int\n\n8. length_constraints:number_words - Ensures the response contains a specified number of words.\n   - num_words: int\n   - relation: str\n\n9. length_constraints:nth_paragraph_first_word - Checks if a specific paragraph starts with a particular word.\n   - num_paragraphs: int\n   - nth_paragraph: int\n   - first_word: str\n\n10. detectable_content:number_placeholders - Verifies that the response includes a certain number of placeholders (e.g., [placeholder]).\n    - num_placeholders: int\n\n11. detectable_content:postscript - Checks if the response includes a postscript section.\n    - postscript_marker: str\n\n12. detectable_format:number_bullet_lists - Ensures the response contains a specific number of bullet point lists.\n    - num_bullets: int\n\n13. detectable_format:constrained_response - Verifies that the response matches one of a set of predefined options.\n    - (No additional arguments required)\n\n14. detectable_format:number_highlighted_sections - Checks if the response includes a certain number of highlighted sections.\n    - num_highlights: int\n\n15. detectable_format:multiple_sections - Ensures the response is divided into a specified number of sections.\n    - section_spliter: str\n    - num_sections: int\n\n16. detectable_format:json_format - Verifies that the entire response is in valid JSON format.\n    - (No additional arguments required)\n\n17. detectable_format:title - Checks if the response includes a title wrapped in double angular brackets.\n    - (No additional arguments required)\n\n18. combination:two_responses - Ensures that two distinct responses are provided, separated by asterisks.\n    - (No additional arguments required)\n\n19. combination:repeat_prompt - Verifies that the original prompt is repeated before the answer is given.\n    - prompt_to_repeat: str\n\n20. startend:end_checker - Checks if the response ends with a specific phrase.\n    - end_phrase: str\n\n21. change_case:capital_word_frequency - Verifies that a certain number of words are in all capital letters.\n    - capital_frequency: int\n    - capital_relation: str\n\n22. change_case:english_capital - Ensures the entire response is in English and uses all capital letters.\n    - (No additional arguments required)\n\n23. change_case:english_lowercase - Checks that the entire response is in English and uses all lowercase letters.\n    - (No additional arguments required)\n\n24. punctuation:no_comma - Verifies that the response does not contain any commas.\n    - (No additional arguments required)\n\n25. startend:quotation - Ensures the entire response is wrapped in double quotation marks.\n    - (No additional arguments required)\n\nAll the arguments are optional.\n\n## Instructions\n\n1. Analyze the provided list of constraints and the given instruction carefully.\n2. For each constraint in the list, identify the relevant parameters from the instruction text.\n3. If a constraint type is not in the list of constraints then all its arguments should be `null`.\n4. Use appropriate data types for the kwargs (strings, integers, booleans, lists, etc.).\n5. If an argument is not relevant, then its value must be `null`.\n6. Be precise and avoid adding unnecessary or speculative kwargs.\n7. For `*_relation` arguments, only provide a non-null value if the corresponding main argument is also non-null.\n\n## Output format:\n\n```\n{{\n    \"keywords\": [...],\n    \"keyword\": ...,\n    \"frequency\": ...,\n    \"relation\": ...,\n    \"forbidden_words\": [...],\n    \"letter\": ...,\n    \"let_frequency\": ...,\n    \"let_relation\": ...,\n    \"language\": \"...\",\n    \"num_sentences\": ...,\n    \"num_paragraphs\": ...,\n    \"num_words\": ...,\n    \"nth_paragraph\": ...,\n    \"first_word\": ...,\n    \"num_placeholders\": ...,\n    \"postscript_marker\": ...,\n    \"num_bullets\": ...,\n    \"num_highlights\": ...,\n    \"section_spliter\": ...,\n    \"num_sections\": ...,\n    \"prompt_to_repeat\": ...,\n    \"end_phrase\": ...,\n    \"capital_frequency\": ...,\n    \"capital_relation\": ...\n}}\n```\n",
                "role": "system"
            },
            {
                "content": "## Instruction\n\nExplain boyle\u0027s law to a 15 year old boy. Use the phrase \u0027in conclusion\u0027 at the beginning of the last paragraph.## Instruction ID List\n\nstartend:end_checker",
                "role": "user"
            }
        ],
        "raw_output_i_f_eval_kwargs_assignator_0": "{ \"language\": null, \"num_sentences\": null, \"relation\": \"at least\", \"num_placeholders\": null, \"num_bullets\": null, \"starter\": null, \"num_highlights\": null, \"section_spliter\": \"Section\", \"num_sections\": null, \"num_paragraphs\": null, \"postscript_marker\": \"P.S.\", \"original_message\": null, \"keywords\": [], \"keyword\": null, \"frequency\": null, \"num_words\": null, \"nth_paragraph\": 1, \"first_word\": \"In\", \"key_sentences\": null, \"forbidden_words\": null, \"original_paragraph\": null, \"low\": null, \"high\": null, \"prompt_to_repeat\": null, \"end_phrase\": \"in conclusion\", \"letter\": null, \"let_frequency\": null, \"let_relation\": \"at least\", \"capital_frequency\": null, \"capital_relation\": \"at least\" }"
    },
    "instruction": "Explain boyle\u0027s law to a 15 year old boy. Use the phrase \u0027in conclusion\u0027 at the beginning of the last paragraph.",
    "instruction_id_list": [
        "startend:end_checker"
    ],
    "kwargs": "{ \"language\": null, \"num_sentences\": null, \"relation\": \"at least\", \"num_placeholders\": null, \"num_bullets\": null, \"starter\": null, \"num_highlights\": null, \"section_spliter\": \"Section\", \"num_sections\": null, \"num_paragraphs\": null, \"postscript_marker\": \"P.S.\", \"original_message\": null, \"keywords\": [], \"keyword\": null, \"frequency\": null, \"num_words\": null, \"nth_paragraph\": 1, \"first_word\": \"In\", \"key_sentences\": null, \"forbidden_words\": null, \"original_paragraph\": null, \"low\": null, \"high\": null, \"prompt_to_repeat\": null, \"end_phrase\": \"in conclusion\", \"letter\": null, \"let_frequency\": null, \"let_relation\": \"at least\", \"capital_frequency\": null, \"capital_relation\": \"at least\" }",
    "model_name": "/home/work/share/models/Qwen2.5-72B-Instruct",
    "response": "Boyle\u0027s Law is a scientific principle that describes how gases behave when they are compressed or allowed to expand. It states that the pressure of a gas is inversely related to its volume when the temperature is kept constant. This means that if you decrease the volume of a gas, the pressure will increase, and if you increase the volume, the pressure will decrease. \n\nTo help you understand this better, imagine a balloon. When you squeeze the balloon (which reduces its volume), the air inside gets compressed, and the pressure increases. If you let go of the balloon, it expands back to its original size, and the pressure inside decreases. This relationship can be summarized in a simple formula: P1 \u00d7 V1 = P2 \u00d7 V2, where P is pressure and V is volume at two different states of the gas.\n\nIn conclusion, Boyle\u0027s Law helps us understand how gases react to changes in pressure and volume. It\u0027s a key concept in physics and chemistry that explains why certain things happen with gases, like why a balloon pops when squeezed too hard or why a syringe works. Understanding this law can give you insight into how many everyday objects and processes work!"
}
```

This subset can be loaded as:

```python
from datasets import load_dataset

ds = load_dataset("KJHub/AutoIF-instruct-61k-AutoIF-id-kwargs-full", "default")
```

Or simply as it follows, since there's only one configuration and is named `default`: 

```python
from datasets import load_dataset

ds = load_dataset("KJHub/AutoIF-instruct-61k-AutoIF-id-kwargs-full")
```


</details>




