---
schema_version: "1"
id: a40a74775c67f209e1199a9c26146ec357bcc989cdfacf8a35bc31df453d4d0c
title: Test Data Libraries in a Sandbox
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/data_library_sandbox.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.data_library_sandbox.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8e174ff87cf788bd3a47a450b799df6496eb874efe7724f76e7dc8a1bbc02d67
description: "A sandbox is a copy of your Salesforce org that you can use for development, testing, and training without compromising the data and applications in your production org. Agentforce Data Library is supported in all the sandbox types: Developer, Developer Pro, Partial Copy, and Full Copy."
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Test Data Libraries in a Sandbox

A sandbox is a copy of your Salesforce org that you can use for development, testing, and training without compromising the data and applications in your production org. Agentforce Data Library is supported in all the sandbox types: Developer, Developer Pro, Partial Copy, and Full Copy.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

Use a sandbox to:

- Test changes against copies of your production data and users.
- Provide a training environment.
- Test AppExchange packages or integrations.
- Isolate customization and development work from your production environment until you’re ready to deploy changes.

Before you begin, complete these prerequisites.

- To use Agentforce Data Libraries, you must have Data 360 [set up](https://help.salesforce.com/s/articleView?id=data.c360_a_setup_provision.htm&language=en_US&type=5). Data libraries consume Data 360 credits.
- [Provision a Data 360 sandbox.](https://help.salesforce.com/s/articleView?id=platform.data_sandbox_create.htm&type=5&language=en_US)
- [Check that you have Agentforce Data Library licenses and permissions.](https://help.salesforce.com/s/articleView?id=ai.data_library_setup.htm&type=5&language=en_US)

Considerations:

- Making Agentforce Data Library changes in a sandbox and deploying those changes back to the production org or another sandbox org isn’t supported.
- Data 360 sandboxes contain only metadata. No data is replicated when you provision Data 360 in a sandbox, even in partial copy and full copy sandboxes.
- Connections are replicated to the sandbox, but the authorization data isn’t replicated. You configure the connection in the sandbox. After you configure the connection, the data flows into the sandbox.

In your sandbox org:

1. In the Data Cloud app, check that your search indexes and retrievers were copied correctly from your home org.
2. In setup, search for and select **Einstein Setup**. Turn on generative AI.
    
    ![Einstein Setup with Einstein toggled on.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/data_library_turn_on_gen_ai.png)
3. Next, in the Quick find box, search for and select **Agentforce Data Library**. Check that your data libraries were copied correctly from your home org.
    
    ![Agentforce Data Library setup with a list of available libraries.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/data_library_list.png)
4. For file based data libraries, files aren’t copied into sandbox orgs. Re-upload files to their respective data libraries.
5. For knowledge-based data libraries, check that your knowledge articles were copied over correctly. In the Knowledge app, under Published Articles, you see the articles that you want to test with your agents.
    
    ![Published Knowledge articles list.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/data_library_list.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)
    
    Note For Developer orgs, only your metadata is copied over. To test a knowledge based data library, copy over knowledge articles.
6. In the Data Cloud app, go to Data Streams and refresh these data streams.
    
    1. AiGroundingFileRef\_Home
    2. DataCategory\_Home
    3. DataCategoryGroup\_Home
    4. Knowledge\_DataCategorySelection\_Home
    5. Knowledge\_kav\_Home
    
    ![Data Streams in Data Cloud setup with the 5 pertinent data streams highlighted.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/data_library_data_streams.png)
7. To ensure that retrievers are working in your sandbox, for files go to AI Models (formerly Einstein Studio) and deactivate then reactivate the retriever used by the data library. For knowledge, update a content field in the data library knowledge setup then save and revert it. This updates the retriever version and syncs the metadata.
8. To test your data libraries with agents, in the Quick find box, search for and select **Agentforce Agents**. Select the agent that you want to test, and open it in Agentbuilder.
    
    ![Agentbuilder with a topic being tested.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/data_library_test_agentbuilder.png)
    
    From Agentbuilder you can query the agent and test how data from your libraries appears in large language model (LLM) responses.