> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fr.nvidia-localization.ferndocs.com/fr/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fr.nvidia-localization.ferndocs.com/fr/_mcp/server.

# nemo\_rl.data.hf\_datasets.oasst

## Contenu du Module

### Classes

| Nom                                                      | Description |
| -------------------------------------------------------- | ----------- |
| [`OasstDataset`](#nemorldatahfdatasetsoasstoasstdataset) | Aucun       |

### Fonctions

| Nom                                                                               | Description                                                                                                               |
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [`parse_conversations`](#nemorldatahfdatasetsoasstparseconversations)             | Fonction récursive qui renvoie toutes les sous-conversations dans une liste à partir de l'arborescence du nœud tree\_obj. |
| [`get_data_records`](#nemorldatahfdatasetsoasstgetdatarecords)                    | Aucun                                                                                                                     |
| [`download_and_process_oasst`](#nemorldatahfdatasetsoasstdownloadandprocessoasst) | Aucun                                                                                                                     |

### Données

`SYSTEM_PROMPT`

### API

```python
nemo_rl.data.hf_datasets.oasst.SYSTEM_PROMPT
```

**Valeur**: \`Une conversation entre un utilisateur curieux et un assistant d'intelligence artificielle. L'assistant donne des réponses utiles, détaillées et polies aux questions de l'utilisateur.

\`

```python
nemo_rl.data.hf_datasets.oasst.parse_conversations(
    tree_obj, first: bool = False
)
```

Fonction récursive qui renvoie toutes les sous-conversations dans une liste à partir de l'arborescence du nœud tree\_obj.

Args:
tree\_obj (obj): nœud de conversation actuel

Returns:
une liste de fils de conversation, y compris le nœud de conversation actuel

```python
nemo_rl.data.hf_datasets.oasst.get_data_records(objs)
```

```python
nemo_rl.data.hf_datasets.oasst.download_and_process_oasst(
    output_directory: str = '.',
    seed: int = 42,
    split_ratio: float = 0.95
) -> dict[str, list]
```

```python
class nemo_rl.data.hf_datasets.oasst.OasstDataset(output_dir: str = '.', seed: int = 42)
```