size_categories:n<1K format:parquet modality:text library:datasets library:pandas library:mlcroissant library:polars library:distilabel region:us synthetic distilabel rlaif datacraft
---
size_categories: n<1K
dataset_info:
  features:
  - name: prompt
    dtype: string
  - name: completion
    dtype: string
  - name: system_prompt
    dtype: string
  splits:
  - name: train
    num_bytes: 2179590
    num_examples: 500
  download_size: 781583
  dataset_size: 2179590
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
tags:
- synthetic
- distilabel
- rlaif
- datacraft
---

<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 hubl_chat

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/hmazomba/hubl_chat/raw/main/pipeline.yaml"
```

or explore the configuration:

```console
distilabel pipeline info --config "https://huggingface.co/datasets/hmazomba/hubl_chat/raw/main/pipeline.yaml"
```

## Dataset structure

The examples have the following structure per configuration:


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

```json
{
    "completion": "The `include` function in HubL is used to include the contents of a file or a snippet in a HubSpot template. It is a powerful tool for modularizing and reusing code in your templates.\n\n**Syntax:**\n```hUBL\n{% include \u0027path/to/snippet.hubl\u0027 %}\n```\n**Parameters:**\n\n*   `\u0027path/to/snippet.hubl\u0027`: The path to the file you want to include. You can use a string literal or a variable.\n\n**How it works:**\n\n1.  You create a separate file (e.g., `snippet.hubl`) in the `files` directory of your HubSpot project.\n2.  In that file, you write the HubL code you want to include.\n3.  In the main template, you use the `include` function to include the contents of the separate file.\n\n**Example:**\n\nSuppose you have a file named `header.hubl` in the `files` directory with the following contents:\n```hUBL\n\u003c!-- header.hubl --\u003e\n\u003cnav\u003e\n  \u003cul\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eHome\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#\"\u003eAbout\u003c/a\u003e\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/nav\u003e\n```\nIn your main template, you can include this file with the following code:\n```hUBL\n\u003c!-- main-template.hubl --\u003e\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eMy Page\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    {% include \u0027header.hubl\u0027 %}\n    \u003c!-- rest of your page content --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n**Tips and Variations:**\n\n*   **Passing variables to the included file:** You can pass variables to the included file using the `include` function with a variable as the second argument:\n    ```hUBL\n{% include \u0027header.hubl\u0027 foo=\u0027bar\u0027 %}\n```\n    In the `header.hubl` file, you can access the variable like this:\n    ```hUBL\n{% include \u0027header.hubl\u0027 foo=\u0027bar\u0027 %}\n  {% if foo %}\n    \u003c!-- add the foo variable to the header --\u003e\n  {% end %}\n```\n*   **Using an absolute path:** You can use an absolute path to include a file from the root of your HubSpot project:\n    ```hUBL\n{% include \u0027/path/to/snippet.hubl\u0027 %}\n```\n    Note that this path is case-sensitive.\n\n**Best Practices:**\n\n*   Use the `include` function to modularize your code and keep your templates organized.\n*   Keep your included files small and focused on a specific task to make maintenance easier.\n*   Use variables to pass data to the included files when needed.\n\nBy following these guidelines and examples, you can effectively use the `include` function in HubL to add modularity and reusability to your HubSpot templates.",
    "prompt": "Can you explain how to use the `include` function in HubL? \n\n",
    "system_prompt": "You are an AI assistant designed to assist with HubL, HubSpot\u0027s custom markup language, by providing clear and concise information on its syntax, functions, and best practices. Your purpose is to help users write and implement HubL code in HubSpot pages and templates, including properties, filters, and operations. Offer step-by-step guidance, provide examples, and answer questions about common use cases and edge cases, taking into account the specific requirements of HubSpot\u0027s content optimization and personalization features. User questions are direct and concise."
}
```

This subset can be loaded as:

```python
from datasets import load_dataset

ds = load_dataset("hmazomba/hubl_chat", "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("hmazomba/hubl_chat")
```


</details>




