# Data sources

A data source node contains data across Redivis that you want to work with and have access to. These are usually [datasets](https://docs.redivis.com/reference/datasets) but can also be other workflows. These nodes display overview information about the dataset or workflow it represents, and a list of the tables it contains.&#x20;

You can click on any table to view its contents, or click "Transform" to build a transform on it.&#x20;

<figure><img src="https://1672950126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LVodLwUXgJUGcm5Cvso%2Fuploads%2FrAhKUE1XCBWIh0d6RbxU%2FScreenshot%202024-12-03%20at%2012.19.26%E2%80%AFPM_out.png?alt=media&#x26;token=6aa7918e-c2f3-48d6-abc5-33b058e5961d" alt=""><figcaption></figcaption></figure>

## Adding data source nodes to a workflow

Adding a data source to a workflow will make a copy of that dataset or workflow in the form of a circular node at the top of your workflow tree. You can add data to the workflow by:

* Click the **+** **Add data** button in the top left of the toolbar within a workflow.
* Click the **Analyze in workflow** button on a dataset page.
* Click the **Fork** button in the toolbar of any workflow.

#### Restrictions

No workflow can contain two copies of the data source or the same version of the same dataset. You can add a different version of the dataset to your workflow by right clicking on the dataset name in the **+ Add data** modal.

## Datasets as a data source

[Datasets](https://docs.redivis.com/reference/datasets) are the most common Data source you will add to your workflow. They contain the data you want to work with in the original state curated by the data owner. Usually datasets will contain 1 or more tables you can choose to transform or analyze in a notebook.

#### Dataset samples

Some large datasets have 1% [samples](https://docs.redivis.com/reference/datasets/samples) which are useful for quickly testing querying strategies before running transforms against the full dataset.&#x20;

If a 1% sample is available for a dataset, it will automatically be added to your workflow by default instead of the full sample. Samples are indicated by the dark circle icon to the top left of a dataset node in the left panel and in the list of the dataset's tables.&#x20;

All sampled tables in the same dataset will be sampled on the same variable with the same group of values (so joining two tables in the same dataset with 1% samples will still result in a 1% sample).

​To switch to the full sample, click **Sampling** button in the top right of the menu bar when you have a dataset selected.&#x20;

Your downstream transforms and tables will become stale, since an upstream change has been made. You can run these nodes individually to update their contents, or use the run all functionality by clicking on the workflow's name in the top menu bar.

#### Dataset versions

When a new [version](https://docs.redivis.com/reference/datasets/versions) of a dataset is released by an administrator, the corresponding dataset node on your workflow tree will become purple. To upgrade the dataset's version, click the "Version" button in the top right of the menu bar when you have a dataset selected.

You can view version diffs and select whichever version you want to use here.

After updating, your downstream transforms and tables will become stale. You can run these nodes individually to update their contents, or use the run all functionality by clicking on the workflow's name in the top menu bar.

## Workflows as a data source

[Workflows](https://docs.redivis.com/reference/workflows) can be added to another workflow in order to build off existing analysis. You might want to continue an analytical pipeline that you've built elsewhere, or elaborate on someone else's analysis. You will have access to all tables this workflow contains.&#x20;

{% hint style="info" %}
All workflow data sources are linked to their original workflow and will automatically update with any changes made to the original.&#x20;
{% endhint %}

## Data source node states&#x20;

As you work in a workflow, nodes colors and symbols will change on the tree view to help you keep track of your work progress.

<table><thead><tr><th width="162.33333333333331">State</th><th width="136">Display</th><th>Details</th></tr></thead><tbody><tr><td><strong>Dataset type</strong></td><td>Dataset icon in the middle of the circle</td><td>This data source is a copy of a <a href="../datasets">dataset</a> on Redivis.</td></tr><tr><td><strong>Workflow type</strong></td><td>Workflow icon in the middle of the circle</td><td>This data source is a copy of another <a href="">workflow</a> on Redivis.</td></tr><tr><td><strong>Sampled</strong></td><td>Black circle with 1% icon</td><td><em>Only possible for dataset source nodes.</em><br><br>This means that you are using a 1% <a href="../datasets/samples">sample</a> of the data. When a dataset has a sample, it will automatically default to it when added to a workflow. You can change this to the full sample and back at any time in the dataset node</td></tr><tr><td><strong>Outdated version</strong></td><td>Purple background on version number</td><td><em>Only possible for dataset source nodes</em>.<br><br>For datasets this means that you are not using the latest <a href="../datasets/versions">version</a>. This means that you have either intentionally switched to using an older version, or that this dataset's administrator has released a new version that you can  to.</td></tr><tr><td><strong>Incomplete access</strong></td><td>All black background, or dashed borders</td><td>You don't have full access the node. Click on the <strong>Incomplete access</strong> button in the top bar to begin applying for access to the relevant datasets.</td></tr></tbody></table>


---

# 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.redivis.com/reference/workflows/data-sources.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.
