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

# Local Datasets

> Learn how to add new entries to a Dataset using the Maxim SDK

export const MaximPlayer = ({url}) => {
  return <iframe className="border-background-highlight-secondary h-full w-full rounded-md border-2 aspect-video" src={url} allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>;
};

The Maxim SDK provides a convenient way to programmatically add new entries to your datasets. This guide will walk you through the process of using the SDK to add entries, helping you efficiently manage and update your datasets for AI training and evaluation.

## Getting your Dataset ID

Get the Dataset ID from the Maxim dashboard:

1. Click the three dots on your target Dataset
2. Select "Copy ID"
3. Use the copied Dataset ID in your code

## Adding entries to a Dataset

<CodeGroup groupId="language" items={["JS/TS", "Python"]}>
  ```typescript JS/TS theme={null}
  // [!code word:apiKey]
  const maxim = new Maxim({ apiKey: "" });

  await maxim.addDatasetEntries("dataset-id", [
      {
          input: {
              type: "text",
              payload: "your content here",
          },
          //optional
          expectedOutput: {
              type: "text",
              payload: "your content here",
          },
          //optional
          context: {
              type: "text",
              payload: "your content here",
          },
      },
  ]);
  ```

  ```python Python theme={null}
  from maxim import Maxim, Config
  from maxim.logger import Logger, LoggerConfig

  # [!code word:api_key]
  maxim = Maxim(Config(api_key=""))

  maxim.maxim_api.add_dataset_entries(
      "dataset-id",
      [
          {
              "input": {
                  "type": "text",
                  "payload": "your content here",
              },
              # optional
              "expectedOutput": {
                  "type": "text",
                  "payload": "your content here",
              },
              # optional
              "context": {
                  "type": "text",
                  "payload": "your content here",
              },
          },
      ],
  )
  ```
</CodeGroup>

<Note>You can insert a maximum of 100 entries at a time to your Dataset.</Note>
