Sub topic 5
Data Cloud building blocks you need
This chapter covers the Data Cloud objects you will meet when you bring Knowledge content into a retriever. It assumes you can administer Salesforce (objects, fields, permission sets) and know what a Knowledge article is. You don't need prior Data Cloud experience.
The working model
Data Cloud is a platform that stores data from many sources in one place. It uses that data for search, segmentation, and AI features. For grounding, you only need to understand four things: data streams, data lake objects, data model objects, and the objects built on top of them.
- A data stream is a connection that brings records from a source into Data Cloud. The source can be a Salesforce org, an Amazon S3 bucket, or another system. A stream has a schedule or refresh mode that controls how often it pulls changes.
- A data lake object (DLO) is the raw storage that a data stream writes into. Its fields mirror the source.
- A data model object (DMO) is a standardized object that Data Cloud uses across features. Mapping a DLO to a DMO tells Data Cloud what each field means, for example which field holds the title and which holds the body text.
- A search index is built on a DMO or DLO. You create it in a later chapter.
How the pieces connect
The diagram shows the order of these objects. Data always flows from left to right. A retriever reads from the index, never from the original Knowledge article.
What this means in practice
Three consequences matter later when you troubleshoot.
- Data is copied, not queried live. The index holds a copy of your article content. If you publish a new article version, the retriever can't return it until the stream refreshes and the index updates.
- Mapping decides what is searchable. If the body field is not mapped to the right DMO field, the index has nothing useful to chunk.
- Each layer has its own status. A stream can succeed while an index build fails. Check each object in turn.
Checking your source content
Before you build anything, confirm which articles should reach Data Cloud. This SOQL query lists the most recently published English article versions.
SELECT Id, Title, UrlName, PublishStatus, Language, LastPublishedDate
FROM Knowledge__kav
WHERE PublishStatus = 'Online'
AND Language = 'en_US'
ORDER BY LastPublishedDate DESC
LIMIT 20Only articles with PublishStatus = 'Online' are published. Drafts and archived versions are not what you want grounding answers on. If an article you expect is missing here, it will also be missing downstream.
Summary of terms
| Term | What it is | Role in grounding |
|---|---|---|
| Data stream | Connection from a source | Brings article records in |
| DLO | Raw storage for stream data | Holds a copy of the source fields |
| DMO | Standardized object | Gives fields shared meaning |
| Search index | Searchable structure | Holds chunks and vectors |
Exercise
You published a corrected Knowledge article an hour ago. The Knowledge list view shows it as Online, but the retriever still returns the old text. Which Data Cloud objects would you check first, and why?
Show answer
Check the data stream first, to see whether it has refreshed since the publish and whether the new version arrived in the data lake object. Then check that the search index has updated from the DMO. Data Cloud holds a copy of the article, so the retriever returns old text until the stream refreshes and the index rebuilds.