Quick Start
Set Up Salesforce CLI for Custom Functions
Monitor Custom Function Deployments
Use a Custom Chunking Function in a Search Index
Verify Custom Chunking Results
Migrate Custom Function to Production
After you deploy a custom chunking function, use it in a search index by creating a search index with Advanced Setup and selecting your function as the Chunking Strategy for the fields you want to chunk.
| Edition Table |
|---|
| Available in: Developer, Enterprise, Performance, and Unlimited Editions. See Data 360 edition availability. |
| User Permissions Needed | |
|---|---|
| To use a custom chunking function in a search index: | Permission set:
|
In Data 360, go to the Search Indexes and click New.
If the tab is not visible, use More to find Search Index.
Select Advanced Setup and click Next to open the full Search Index Builder.
In the Search Index Builder, select the data model object that contains the data you want to chunk (for example, a DMO with unstructured or text fields). Click Next.
In the Select Fields To Chunk section, click Manage Fields.
In the Manage Fields modal, select the fields you want to chunk with your custom function (for example, a description or long-text field). Click Save.
For each field you want to chunk with your custom code:
Click Next and complete the rest of the search index configuration (for example, embedding model for vectorization, fields for filtering, and index name and API name).
Click Save to create the search index.
Saving can take several minutes. Stay on the page until the builder finishes or shows an error.
After the search index is created, reload the record page and wait until Search Index Last Run Status shows Ready before verifying chunked data. This can take several minutes.