When using RAG to ground Agentforce Sales Coach, add the Agentforce Data Library retriever to relevant prompt templates for the agent to reference your uploaded files.
Required Editions
| Available in: Lightning Experience in Enterprise, Performance, Unlimited, and Developer Editions with Foundations or Agentforce 1 Editions. |
See Also
Verify Access to Data Space
Before you add retrievers, make sure that the Agentforce Sales Coach permission set has access to the default data space specific to the Agentforce Data Library.
- From Setup, enter Permission Sets, and then select Permission Sets.
- Select the Agentforce Sales Coach permission set.
- Under the Apps section, click Data Cloud Data Space Management.
- Click Edit on Data Spaces and select the default option.
- Click Save.
Add Retrievers to Prompt Template
Follow these steps to add retrievers to the prompt template.
- In Prompt Builder, select the prompt template you wish to add a retriever to.
- Click the Resources search bar.
- Click Einstein Search.
- Click RagFileUDMO.
-
Select the retriever for your Agentforce Data Library.
Retriever names align with the Agentforce Data Library name.
-
Add written instructions in the prompt template for the LLM to know how to use the
retriever. For example, “Reference the discovery process the company uses
EinsteinSearch:RagFileUDMO_SI_1Cx_QFx6a79befc.resultsand include a hyperlink to the best resource for a sales executive.” - Save your changes.