task_categories:question-answering task_categories:text-generation size_categories:10K<n<100K language:nl license:cc-by-nc-4.0 baize quora chat doi:10.57967/hf/0524 region:us
---
license: cc-by-nc-4.0
task_categories:
- question-answering
- text-generation
language:
- nl
tags:
- baize
- quora
- chat
pretty_name: Quora Chat Dutch
size_categories:
- 10K<n<100K
---

# Dataset Card for Quora Chat Dutch

## Dataset Description

- **Homepage:** N/A
- **Repository:** N/A
- **Paper:** N/A
- **Leaderboard:** N/A
- **Point of Contact:** Bram Vanroy

### Dataset Summary

This dataset contains 54,444 conversations between een AI assistant and a (fake) "Human" (generated) in Dutch. They are translations of [Baize](https://github.com/project-baize/baize-chatbot/tree/6790946f638d60fcaf397574189124f15792f35a/data)'s machine-generated answers to the [Quora](https://huggingface.co/datasets/quora) dataset. 

☕ [**Want to help me out?**](https://www.buymeacoffee.com/bramvanroy) Translating the data with the OpenAI API, and prompt testing, cost me 💸$135.65💸. If you like this dataset, please consider [buying me a coffee](https://www.buymeacoffee.com/bramvanroy) to offset a portion of this cost, I appreciate it a lot! ☕

### Languages

- Dutch

## Dataset Structure

### Data Instances

```python
{
  'id': 10,
  'input': 'Het gesprek tussen de mens en de AI-assistent.\n'
           '[|Human|] Ik vroeg me af wanneer de Moto G3 de Android 7.0-update '
           'zal krijgen?\n'
           '[|AI|] De Moto G3 (Moto G 3rd gen 2015) komt in aanmerking voor de '
           'Android 7.0 (Nougat) update.\n'
           '[|Human|] Geweldig! Weet je wanneer de update beschikbaar zal '
           'zijn?\n'
           '[|AI|] De update werd uitgebracht in december 2016 voor de Moto G4 '
           'en G4 Plus. Er is echter nog geen woord over wanneer de Moto G3 de '
           'update zal ontvangen.\n'
           '[|Human|] Is er nieuws of het binnenkort de update zal ontvangen?\n'
           '[|AI|] Het spijt me, ik heb momenteel geen informatie daarover. '
           'Het is het beste om uit te kijken naar updates van Motorola.\n'
           '[|Human|] ',
  'topic': 'Wanneer krijgt Moto G3 (Moto G 3e gen 2015) de Android 7.0 '
           '(Nougat) update?'
}
```

### Data Fields

- **id**: the ID of the item. The following IDs are not included because they could not be translated: `[1352, 14599, 25985, 27167, 28254, 33731, 41550, 44364, 47293, 49060, 51383, 53740]`
- **input**: the machine-generated conversation between AI and "Human". Always starts with `Het gesprek tussen de mens en de AI-assistent.\n` and has at least one occurrence of both `[|AI|]` and `[|Human|]`.
- **topic**: the topic description


## Dataset Creation

Both the translations and the topics were translated with OpenAI's API for `gpt-3.5-turbo`. `max_tokens=1024, temperature=0` as parameters.

The prompt template to translate the input is:

```python
CONVERSATION_TRANSLATION_PROMPT = """You are asked to translate a conversation between an AI assistant and a human from {src_lang} into {tgt_lang}.

Here are the requirements that you should adhere to:
1. maintain the format: the conversation consists of the AI (marked as `[|AI|]`) and the human (`[|Human|]`) talking in turns and responding to each other;
2. do not translate the speaker identifiers `[|AI|]` and `[|Human|]` but always copy them into the translation in appropriate places;
3. ensure accurate translation and keep the correctness of the conversation;
4. make sure that text is fluent to read and does not contain grammatical errors. Use standard {tgt_lang} without regional bias;
5. translate the human's text using informal, but standard, language;
6. make sure to avoid biases (such as gender bias, grammatical bias, social bias);
7. if the human asks to correct grammar mistakes or spelling mistakes then you have to generate a similar mistake in {tgt_lang}, and then also generate a corrected output version for the AI in {tgt_lang};
8. if the human asks to translate text from one to another language, then you only translate the human's question to {tgt_lang} but you keep the translation that the AI provides in the language that the human requested;
9. do not translate code fragments but copy them as they are. If there are English examples, variable names or definitions in code fragments, keep them in English.

Now translate the following conversation with the requirements set out above. Do not provide an explanation and do not add anything else.\n\n"""
```

The prompt to translate the topic is:

```python
TOPIC_TRANSLATION_PROMPT = "Translate the following title of a conversation from {src_lang} to {tgt_lang} in a succinct," \
                           " summarizing manner. Translate accurately and formally. Do not provide any explanation" \
                           " about the translation and do not include the original title.\n\n"
```

The system message was:

```
You are a helpful assistant that translates English to Dutch to the requirements that are given to you.
```

Note that 12 items (0.02%) were not successfully translated. The translation was missing the AI identifier `[|AI|]` and/or the human one `[|Human|]`. The IDs for the missing items are `[1352, 14599, 25985, 27167, 28254, 33731, 41550, 44364, 47293, 49060, 51383, 53740]`.

### Source Data

#### Initial Data Collection and Normalization

Initial data generation by [Baize](https://github.com/project-baize/baize-chatbot), which in turn relied on [Quora](https://huggingface.co/datasets/quora).

#### Who are the source language producers?

Quora users and OpenAI's GPT models (via [Baize](https://github.com/project-baize/baize-chatbot)).

## Considerations for Using the Data

Note that neither the translations in this new dataset, nor the machine-generated dialogues in the original [Baize](https://github.com/project-baize/baize-chatbot) dataset, have been verified by humans.

### Discussion of Biases

As with any machine-generated texts, users should be aware of potential biases that are included in this dataset. Although the prompt specifically includes `make sure to avoid biases (such as gender bias, grammatical bias, social bias)`, of course the impact of such command is not known. It is likely that biases remain in the dataset so use with caution.

### Other Known Limitations

The translation quality has not been verified. Use at your own risk!

### Licensing Information

This text was generated (either in part or in full) with GPT-3 (`gpt-3.5-turbo`), OpenAI’s large-scale language-generation model. Upon generating draft language, the author reviewed, edited, and revised the language to their own liking and takes ultimate responsibility for the content of this publication. Therefore commercial usage is not allowed.

If you use this dataset, you must also follow the [Sharing](https://openai.com/policies/sharing-publication-policy) and [Usage](https://openai.com/policies/usage-policies) policies. 

### Citation Information

If you use this data set, please cite :


Vanroy, B. (2023). Quora Chat Dutch [Data set]. Hugging Face. https://doi.org/10.57967/HF/0524

```bibtex
@misc{https://doi.org/10.57967/hf/0524,
  doi = {10.57967/HF/0524},
  url = {https://huggingface.co/datasets/BramVanroy/quora-chat-dutch},
  author = {Vanroy, Bram},
  title = {{Q}uora {C}hat {D}utch},
  publisher = {Hugging Face},
  year = {2023}
}
```


### Contributions

Thanks to [Baize](https://github.com/project-baize/baize-chatbot) for the initial machine-generated dialogues, based on [quora](https://huggingface.co/datasets/quora).