You are here:
Prepare Data for Compliance Management with Agentforce
Upload the policy documents and obtain the retriever ID.
Required Editions
Set Up Policy Documents in Salesforce
To ensure the AI agent provides accurate, informed responses, upload your policy document to the Agentforce Data Library. It uses grounding to index the document's content.
Required Editions
| User Permissions Needed | |
|---|---|
| To set up Agentforce Data Libraries: | Data Cloud Admin permission set |
- From Setup, in the Quick Find box, enter Data Library, and then select Agentforce Data Library.
- Create a new library in the Agentforce Data Library. See Create a Data Library.
- Upload the policy document. See Use Uploaded Files.
- Wait for some time.
-
Verify that the upload document is chunked and indexed.
- From App Launcher, enter and select Query Editor.
- Create a new workspace.
- Click Data Lake Objects, and select FileUDMO_SI_chunk__dlm.
-
Click Create Query and in the query text box, enter this
query:
SELECT "ChunkSequenceNumber__c", "Chunk__c", "RecordId__c","SourceRecordId__c" FROM "FileUDMO_SI_chunk__dll" WHERE "SourceRecordId__c" LIKE '%/article_12.pdf' LIMIT 10Replace article_12.pdf with the name of the policy document that you uploaded.
- Run the query.
-
Get the retriever ID.
- From App Launcher, enter and select AI Models (formerly Einstein Studio).
- Click Retrievers.
- Open the retriever record with the name File_data_library_name.
- Note down the API Name of the record to be used as the retriever ID.
See Also
Did this article solve your issue?
Let us know so we can improve!

