---
schema_version: "1"
id: 52bcf63823b1964f678dd0da7a773b6e8d49f8c9e5a7b86426d04e71bb07adde
title: Choose A Data Source for Your Library
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/data_library_choose_data_source.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.data_library_choose_data_source.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9dddc3944964a2aca66e731cc58e146081ee94600581a88e9a90cc598f93e15c
description: When you configure a data library, you can add knowledge articles, uploaded files, or custom retrievers as a data source. The data source is indexed on Data Cloud where a search index and retriever are automatically created for you. When integrated with AI agents, the data library’s search index and retriever are used by the Answer Questions with Knowledge action.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Choose A Data Source for Your Library

When you configure a data library, you can add knowledge articles, uploaded files, or custom retrievers as a data source. The data source is indexed on Data Cloud where a search index and retriever are automatically created for you. When integrated with AI agents, the data library’s search index and retriever are used by the Answer Questions with Knowledge action.

A data library can’t support multiple data sources simultaneously. After you choose a library’s data source, you can’t change it later. You can create multiple data libraries and assign them to multiple features, but each feature can use only one data library at a time.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)

Important Web search isn’t supported for new data libraries. Existing web search data libraries are read-only. See [Use Web Search](https://help.salesforce.com/s/articleView?id=ai.data_library_web_search.htm&release=264.0.0&type=5 "Agentforce Data Library doesn't support new web-search data libraries. You'll still be able to view and use your existing web search data libraries.").

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.

- **[Use Salesforce Knowledge](https://help.salesforce.com/s/articleView?id=ai.data_library_select_fields.htm&release=264.0.0&type=5)**  
    Select the knowledge fields for your data library to index.
- **[Use Uploaded Files](https://help.salesforce.com/s/articleView?id=ai.data_library_file_upload.htm&release=264.0.0&type=5)**  
    Select the files to upload for your data library to index.
- **[Use Web Search](https://help.salesforce.com/s/articleView?id=ai.data_library_web_search.htm&release=264.0.0&type=5)**  
    Agentforce Data Library doesn't support new web-search data libraries. You'll still be able to view and use your existing web search data libraries.
- **[Use a Custom Retriever](https://help.salesforce.com/s/articleView?id=ai.data_library_custom_retriever.htm&release=264.0.0&type=5)**  
    Use custom retrievers to connect to more types of data sources in Data 360 including ensemble retrievers, or, connect companion orgs to data libraries and search indexes configured in your home org.

#### See Also

- [Data 360 Features and Learning Path](https://help.salesforce.com/s/articleView?id=data.c360_a_customer360_lm.htm&type=5&language=en_US)
- [Agent Action: Answer Questions with Knowledge](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_answer_questions_with_knowledge.htm&type=5&language=en_US)