Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Salesforce · Agentforce Specialist

The Agentforce Data Library, Grounding in Data 360

Agentforce Specialist · Lesson 4 of 14 · 32:45

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Salesforce Agentforce Specialist exam. In this lesson: why agents are grounded in verified data, the four ideas behind it (grounding, chunking, indexing, retrievers), creating an Agentforce Data Library from knowledge articles or uploaded files, what it builds on its own in Data 360, giving it to an agent, what happens at run time, and when to build the index and retriever yourself. Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of December 2026.

Answers that live in documents

Sunmeadow's customers ask questions that no field on a record can answer, such as how to restart an inverter, or what the battery warranty covers. The answers live in hundreds of PDF manuals and knowledge articles, and the model has never read them. This lesson shows how an Agentforce Data Library puts that content within the agent's reach.

Why ground in knowledge

A large language model is a generalist: it knows a lot about the world, and nothing about your products. Grounding it in verified sources, such as a knowledge base or your own files, makes its answers accurate and current, without retraining or fine tuning the model. And most of a company's knowledge is unstructured, in articles, manuals, and pages, rather than in fields.

Where Data 360 fits

That content is prepared in Data 360, which used to be called Data Cloud. Data 360 stores the content, splits it, and indexes it, so that it can be searched by meaning. An Agentforce Data Library does all of that for you, from a few settings.

Four core concepts

Four concepts come back again and again. Grounding adds business context to the prompt. Chunking splits each document into pieces that keep their meaning, such as a paragraph or a section. Indexing stores those chunks in a search index, which makes search fast and relevant across large volumes. And a retriever is the link between the data and an AI feature, because it decides which Data 360 data that feature can read.

Building a data library

To build one, go to Setup, open Agentforce Data Library, and create a new library, with a unique name and a description. Then choose its source: knowledge articles, or files that you upload. That choice is final, so a library cannot switch from one source to the other later. For files, a PDF can be up to one hundred megabytes, and a text or HTML file up to four megabytes.

What gets created for you

When you save, the setup runs on its own. It creates the data stream into Data 360, the data objects and their mapping, the chunks, the search index, and a retriever. It also creates a prompt template and an agent action, both called Answer Questions with Knowledge. And each library gets its own retriever.

Giving it to an agent

Next, open the agent in the builder, and select the library in its knowledge settings. An agent uses only one data library, so choose the one that fits its job. Save and activate the agent, then wait until the index is ready before you test. In the preview, you can see the reasoning cite the files it used.

What happens at run time

At run time, the user's question goes to the Answer Questions with Knowledge template, which calls the retriever. The question is turned into a vector, a set of numbers that captures its meaning. The index returns the chunks that are closest in meaning, and they are added to the prompt. The model then answers from those chunks, instead of from its general knowledge.

When a library is not enough

A data library takes only two sources: uploaded files, and knowledge articles. If you need another object, such as past cases, or content in external storage, it is not the right tool. The same goes for settings that the library does not let you choose. In those cases, you build the search index and the retriever yourself in Data 360, and that is the subject of the next lesson.

Recap

Let's recap. Grounding in verified sources keeps answers accurate and current, without retraining the model. Chunking, indexing, and retrievers make that content searchable by meaning in Data 360. A data library takes knowledge articles or uploaded files, a choice that is final. On save, it creates everything, including the Answer Questions with Knowledge template and action. An agent uses one library, and other sources need an index and a retriever built in Data 360.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Sunmeadow publishes new inverter manuals every month, and the agent must answer from the latest ones. Which approach fits BEST?

    • Retrain the model each month on the new manuals
    • Paste the manuals into the agent’s instructions
    • Ground the agent in a data library of the manuals
    • Store all the manuals in one long text field
    Show the answer

    Ground the agent in a data library of the manuals

    Grounding the agent in a data library that holds the manuals keeps its answers current, with no change to the model. “Retrain the model each month on the new manuals” is wrong, because retraining a model every month is slow and costly, and grounding makes it unnecessary. “Paste the manuals into the agent’s instructions” is wrong, since hundreds of manuals cannot fit in the instructions, which should describe behavior, not hold content. And “Store all the manuals in one long text field” is wrong, because a long text field on a record is not searched by meaning, so the agent would not find the right passage.

  2. A data library was built from uploaded files, and the admin now wants it to use knowledge articles instead. What is true?

    • A new library is needed for the articles
    • The admin can edit the source, then save
    • Deleting the retriever lets the source change
    • The articles can go into the agent instructions
    Show the answer

    A new library is needed for the articles

    The source of a data library is chosen once, so the admin needs a new library for the articles. “The admin can edit the source, then save” is wrong, because the source cannot be edited after the library is saved. “Deleting the retriever lets the source change” is wrong, since the retriever only links the data to AI features, and removing it does not change the source. And “The articles can go into the agent instructions” is wrong, because instructions describe behavior, and are not a place to store articles.

  3. Sunmeadow wants its agent to answer from the resolutions of past cases, stored on the Case object. What should the admin do?

    • Create a data library with Case as its source
    • Add a second data library to the agent
    • Paste the resolutions into the agent instructions
    • Build a search index and retriever in Data 360
    Show the answer

    Build a search index and retriever in Data 360

    A data library takes only files and knowledge articles, so case data needs its own search index and retriever in Data 360. “Create a data library with Case as its source” is wrong, because Case is not a source that a data library offers. “Add a second data library to the agent” is wrong, since an agent uses only one data library. And “Paste the resolutions into the agent instructions” is wrong, because the instructions should guide behavior, and cannot hold thousands of case resolutions.