---
schema_version: "1"
id: ffefe8200394876c3d3d9fa8285e687f3dfb24ad71568a48a552c2a28f1a1111
title: Agentforce Data Library
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/data_library_parent.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.data_library_parent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aa3a1c18c36cf6f39d17222a0e97221ee1a9895dbc1464605ea28f394927d4d1
description: Improve accuracy, add personalization, and build trust in gen AI responses when you assign data libraries to your Agentforce features. Agentforce Data Library uses grounding to index your knowledge articles and fields, your file uploads, or web sources, so that AI agents know which information to base responses on. With this index, AI agents can ensure the accuracy of LLM responses against your organization’s information so that you get the best results.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Agentforce Data Library

Improve accuracy, add personalization, and build trust in gen AI responses when you assign data libraries to your Agentforce features. Agentforce Data Library uses grounding to index your knowledge articles and fields, your file uploads, or web sources, so that AI agents know which information to base responses on. With this index, AI agents can ensure the accuracy of LLM responses against your organization’s information so that you get the best results.

### 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>

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&type=5&language=en_US). Data libraries consume Data 360 credits.

To use Agentforce Data Library in a Data Cloud One companion org, use a custom retriever as the library's data source. Agentforce Data Library doesn't support Knowledge or Files as a data source in companion orgs.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:6.5420560747663545%">
        <col style="width:93.45794392523365%">
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <a name="data_library_parent__image_nmk_32j_xdc"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="width:35px;margin-bottom:0;" id="data_library_parent__image_nmk_32j_xdc" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/learning_minimap/help_minimap.png" alt="../images/learning_minimap/help_minimap.png"></span>
          </td>

          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <p>Dive deeper into Salesforce Help.</p><a name="data_library_parent__ul_omk_32j_xdc"><!-- --></a>
            <ul id="data_library_parent__ul_omk_32j_xdc">
              <li><a href="https://help.salesforce.com/s/articleView?id=ai.data_library_concept.htm&amp;release=264.0.0&amp;type=5" title="Agentforce Data Libraries enhance the accuracy of AI features like Agentforce Agents by connecting them to your trusted data sources. Data libraries use unstructured or semi-structured data so that they can take large sets of information that exist on the web, in documents, or as large text inputs in fields, and turn that into more useful, searchable information.">What Are Data Libraries?</a></li>

              <li><a href="https://help.salesforce.com/s/articleView?id=data.c360_a_rag_overview.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Using Retrieval Augmented
                    Generation</u></a></li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <a name="data_library_parent__image_rmk_32j_xdc"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="width:35px;margin-bottom:0;" id="data_library_parent__image_rmk_32j_xdc" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/learning_minimap/trailhead_minimap.png" alt="Traihead resources. Icon."></span>
          </td>

          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <p>Use Trailhead to build and test your skills.</p><a name="data_library_parent__ul_smk_32j_xdc"><!-- --></a>
            <ul id="data_library_parent__ul_smk_32j_xdc">
              <li><a href="https://trailhead.salesforce.com/content/learn/modules/agentforce-data-library-basics" target="_blank">Agentforce Data Library Basics</a></li>

              <li><a href="https://trailhead.salesforce.com/content/learn/modules/retrieval-augmented-generation-quick-look" target="_blank">Retrieval Augmented Generation: Quick
                  Look</a></li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <a name="data_library_parent__image_p5k_x2j_xdc"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="width:35px;margin-bottom:0;" id="data_library_parent__image_p5k_x2j_xdc" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/learning_minimap/help_minimap.png" alt="../images/learning_minimap/help_minimap.png"></span>
          </td>

          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <p>Get started with data library setup.</p><a name="data_library_parent__ul_wmk_32j_xdc"><!-- --></a>
            <ul id="data_library_parent__ul_wmk_32j_xdc">
              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=ai.data_library_setup.htm&amp;type=5&amp;language=en_US" target="_blank">Setting Up Data Libraries</a></li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <a name="data_library_parent__image_mzw_nfj_xdc"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="width:35px;margin-bottom:0;" id="data_library_parent__image_mzw_nfj_xdc" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/learning_minimap/help_minimap.png" alt="../images/learning_minimap/help_minimap.png"></span>
          </td>

          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <p>Integrate data libraries with AI agents.</p><a name="data_library_parent__ul_ymk_32j_xdc"><!-- --></a>
            <ul id="data_library_parent__ul_ymk_32j_xdc">
              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_data_sources.htm&amp;release=264.0.0&amp;type=5" title="Connect your agent to a data library for structured, citation-rich responses grounded in your indexed content.">Use the Answer Questions with Knowledge Action</a></li>

              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_answer_questions_with_knowledge.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Answer Questions with
                    Knowledge</u></a></li>

              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=ai.prompt_builder_answer_questions_with_knowledge.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Customize the Knowledge Action prompt template
                    in Prompt Builder</u></a></li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <a name="data_library_parent__image_jfv_pfj_xdc"><!-- --></a><span style="vertical-align:text-bottom;display:inline-block;"><img style="width:35px;margin-bottom:0;" id="data_library_parent__image_jfv_pfj_xdc" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/resources-global/_corporate/images/learning_minimap/architect_minimap.png" alt="Diagram resources. Icon."></span>
          </td>

          <td class="slds-cell-wrap" style="text-align:left;vertical-align:top;">
            <p>Explore all data library enabled features.</p><a name="data_library_parent__ul_ccp_lfj_xdc"><!-- --></a>
            <ul id="data_library_parent__ul_ccp_lfj_xdc">
              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_data_sources.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Agentforce Agents</u></a></li>

              <li dir="ltr"><a href="https://help.salesforce.com/s/articleView?id=service.reply_recs_service_replies_chat_intro.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Einstein Service Replies for
                    Chat</u></a></li>

            </ul>
          </td>

        </tr>
      </tbody>
    </table>