# Adding Data

## Adding Data Sets

{% hint style="warning" %}
*<mark style="color:orange;">**Pre-requisites:**</mark>*&#x20;

* *The users must have permission to access the **Data Center** module of the Platform.*&#x20;
* *The users must have the required data sets listed under the **Data Center** module.*
  {% endhint %}

{% hint style="success" %}
*Check out the illustration to understand the steps for adding Datasets to a DSL Project.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FrVkBjqYeGbQRlqpbDfmy%2FAdding%20Datasets.mp4?alt=media&token=7d8ac8bc-0bd9-4bd3-be92-527fa7114713>" %}
***Adding Datasets to a DSL Project***
{% endembed %}

* Open a Project.&#x20;
* Click the ***Data*** tab to open it.
* Click the ***Add Data*** option from the ***Data*** tab.

<figure><img src="/files/VbYSemmS99mnIc0jiEfo" alt=""><figcaption></figcaption></figure>

* The ***Add Data*** page opens offering two options to choose data:
  * Data service (the default selection)
  * Data Sandbox Files
  * Feature Stores
* Go ahead with the ***Data Sets*** option from the ***Data Source*** drop-down menu.
* Use the ***Search*** space to search through the displayed data service list.
* Select the required data set(s) using the checkboxes provided next to it.
* Click the ***Add*** option.

<figure><img src="/files/EvNdB5IUSRe7LfJNWQnh" alt=""><figcaption></figcaption></figure>

* The selected data set(s) gets added to the concerned project.
* A notification message appears to inform the same.

<figure><img src="/files/R0IAhN6IxRycVnkfdJNr" alt=""><figcaption></figcaption></figure>

## Uploading and Adding Data Sandbox Files

{% hint style="warning" %}
*<mark style="color:orange;">**Pre-requite:**</mark> The user must configure the **Sandbox Settings** to access the Data Sandbox option under the **Data Science Lab**.*
{% endhint %}

{% hint style="success" %}
*Check out the illustration to understand the steps for uploading and adding Datasandbox to a DSL Project.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FCzd8ISouybzGdr1e1T4D%2FUploading%20and%20Adding%20Data%20Sandbox.mp4?alt=media&token=b8e4f2ae-b005-4d00-905a-8fc7918f5511>" %}
***Uploading and Adding Data Sandbox Files***
{% endembed %}

### Uploading a Data Sandbox

* Open a DSL Project.
* Click on the ***Data*** tab.
* Click the ***Add Data*** option.&#x20;

<figure><img src="/files/KYXMF4TyEukfexzkw7ly" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Add Data*** page.
* Select the ***Data Sandbox*** option from the Data Source drop-down menu.&#x20;
* Click the ***Upload*** option to upload a Data Sandbox file.

<figure><img src="/files/i0LrFrKt8qahgxdb87Ao" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Upload Data Sandbox*** page.
* Provide a ***Sandbox Name***.
* Provide a ***Description*** of the Data Sandbox.
* Click the ***Choose File*** option to select a file.
* Choose a file from your system and upload it. The supported files are

<figure><img src="/files/EkQltfPgujTDPFPJ9w5L" alt=""><figcaption></figcaption></figure>

* Click the ***Save*** option to begin the file upload.

<figure><img src="/files/2hHHTi0YL4I8Gt9C9H9C" alt=""><figcaption></figcaption></figure>

* Wait till the uploaded file gets loaded 100%.

<figure><img src="/files/3UTVEiUnms5Nunyl4XkY" alt=""><figcaption></figcaption></figure>

* The uploaded sandbox file gets added under the ***Add Datasets*** page.
* A notification message appears to indicate that the file has been uploaded.

<figure><img src="/files/Ixw6vivKTUhypv2pVj0I" alt=""><figcaption></figcaption></figure>

### Adding Data Sandbox files

* The user gets redirected to the ***Add Data*** page.
* Select the ***Data Sandbox*** option from the ***Data Source*** drop-down menu.
* Use the search space to search a specific data sandbox.
* Select Data Sandbox files using the checkbox given next to the Sandbox entry (The uploaded Data Sandbox file appears at the top of the list).&#x20;
* Click the ***Add*** option that appears after selecting the uploaded Sandbox file.

<figure><img src="/files/ZxAlcIQTvSHaHkiabOIW" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Dataset*** tab where the added dataset file gets listed.
* A notification message appears to inform that the selected Dataset (in this case, the selected Data Sandbox file) has been updated.

<figure><img src="/files/cfnbMBSzMM1KaTquPGd8" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The users get a **search bar** to search across the multiple Datasets options on the **Add Datasets** page.*
{% endhint %}

## Adding Feature Stores

{% hint style="success" %}
*Check out the illustration to understand the steps for adding Feature Stores to a DSL Project.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28ipFzCz8EMtVtHrBFLx%2Fuploads%2Fc5JcR0X4ppbLOKMnYKOO%2FAdding%20Feature%20Stores.mp4?alt=media&token=c8e36e3b-2ec4-4a0c-9b86-90bb901b87cd>" %}
***Adding Feature Stores to a DSL Project***
{% endembed %}

* Navigate to a DSL Project.
* Click the ***Data*** tab to open it.
* Click the ***Add Data*** option from the ***Data*** tab.

<figure><img src="/files/ugDwkgTl532VYvjNeAbM" alt=""><figcaption></figcaption></figure>

* The ***Add Data*** page opens offering three options to choose data.
* Select the ***Feature Stores*** option from the Data Source drop-down menu.
* Use the ***Search*** space to search through the displayed data service list.
* Select the required feature store(s) using the checkboxes provided next to it.
* Click the ***Add*** option.&#x20;

  <figure><img src="/files/WmkDApjPhGBk8osVlku5" alt=""><figcaption></figcaption></figure>
* A notification message appears to inform the same.&#x20;

  <figure><img src="/files/cIZ1NLpbZDQiez6aYpDW" alt=""><figcaption></figcaption></figure>
* The selected feature store(s) gets added to the concerned project.&#x20;

  <figure><img src="/files/96LDlUViR6RBDJzHh2YQ" alt=""><figcaption></figcaption></figure>

### Adding a Feature Store with Data Preparation

{% hint style="success" %}
*Check out the illustration to understand adding a Feature Store with Data Preparation.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F28ipFzCz8EMtVtHrBFLx%2Fuploads%2Fim8YyTYXsjkpRSEh7XZJ%2FData%20Preparation_in%20feature%20store.mp4?alt=media&token=0cfbb616-c877-4676-acf7-b7582c2c9ad0>" %}
***Data Preparation in a Feature Store***
{% endembed %}

* Navigate to the ***Data Science Lab*** module.
* Click the ***Create*** option provided for the Feature Store.

<figure><img src="/files/1GHPLVCSkoCF00WPOLsd" alt=""><figcaption></figcaption></figure>

* The ***Create Feature Store*** page opens.
* Provide a name to the Feature Set.
* Select a connector from the drop-down menu.
* Select a query from the table info. / Metadata list or write an SQL Query.
* Click the ***Validate*** option.
* A notification message ensures that the query is validated.
* The ***Preview*** of the data appears below.
* Click the ***Data Prep*** option.

<figure><img src="/files/6H08UlKtSPLfTCtIiCaA" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the Data Preparation page.&#x20;

<figure><img src="/files/KC89vlWVoBWsqEtqbyEM" alt=""><figcaption></figcaption></figure>

* Navigate to the ***Transforms*** tab.
* Choose a transform from the list. Here, the Label Encoding transform is selected from the ML category.

<figure><img src="/files/PfsXS6KEGdvfE8a5baZe" alt=""><figcaption></figcaption></figure>

* A warning appears to remind the users that if the SQL query is changed, the applied data preparations or transformations will be lost.
* The ***Data Prep*** option will have a green mark suggesting that the Data Preparation is applied to the selected Feature Store.
* Click the ***Create*** option.

<figure><img src="/files/LbjrTHUV9HdsWLbORxU3" alt=""><figcaption></figcaption></figure>

* A notification ensures that the Feature store job is initiated.&#x20;

<figure><img src="/files/knkX0jmP34BDPehAYz7A" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the Feature Stores page.
* The newly created feature store gets added at the top of the list.

<figure><img src="/files/Y2IinCy21Wts9qPckcDi" alt=""><figcaption></figcaption></figure>

* Open a Project.
* The ***Workspace*** tab opens by default.
* Open the ***Data*** tab.
* &#x20;Click the ***Add Data*** icon.

<figure><img src="/files/5vey5wfzfCOxXxjgkq61" alt=""><figcaption></figcaption></figure>

* The ***Add Data*** page opens.
* Select Feature Stores as an option using the ***Data Source*** filter menu.
* The list of the available Feature Stores will be listed.
* Select a feature store using the checkbox.
* Click the ***Add*** option.

<figure><img src="/files/XQoDhw0SzrEUeVM3zyC5" alt=""><figcaption></figcaption></figure>

* A notification appears stating that the feature store has been added.
* The recently added feature store appears under the Data section of the selected project.

<figure><img src="/files/T3LbJbFumKouWvyUQlXR" alt=""><figcaption></figcaption></figure>

* Add a new code cell and put a checkmark in the given checkbox next to the recently added Feature Store as data for the project.
* The Data gets loaded in the code cell.

<figure><img src="/files/VYjhgTq3jxLTpilMdr7V" alt=""><figcaption></figcaption></figure>

* Run the code cell with the loaded feature store.

<figure><img src="/files/fgryB2pxcXAkPLZuZl0r" alt=""><figcaption></figcaption></figure>

* The data preview appears below the code cell.

<figure><img src="/files/yuiainLhJop9dk4sNhK7" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bdb.ai/data-science-lab-6/tabs-for-a-dsl-project/data/adding-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
