> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# extendDataset

***

# Function: extendDataset()

```ts theme={null}
function extendDataset(
  params: SyntheticDatasetExtensionRequest,
): Promise<DatasetRow[]>;
```

Defined in: [src/utils/datasets.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/datasets.ts)

Extends a dataset with synthetically generated data based on the provided parameters.
Delegates to Datasets.extend().

## Parameters

### params

[`SyntheticDatasetExtensionRequest`](/sdk-api/typescript/reference/README/type-aliases/SyntheticDatasetExtensionRequest)

Configuration for synthetic data generation.

## Returns

`Promise`\<[`DatasetRow`](/sdk-api/typescript/reference/README/type-aliases/DatasetRow)\[]>

A promise that resolves to the generated dataset rows.
