Deploy a Custom Function to Data 360 by Using UI
Deploy your custom chunking function to Data 360 by packaging your Python code and its dependencies into a .zip file and uploading it through the Code Extension UI. After deployment, your function is available as a chunking strategy option in the search index builder.
| Edition Table |
|---|
| Available in: Developer, Enterprise, Performance, and Unlimited Editions. See Data 360 edition availability. |
| User Permissions Needed | |
|---|---|
| To deploy a custom function to Data 360: | Permission set:
|
- Write and validate your custom chunking function locally. See Write a Custom Chunking Function.
To deploy with the Salesforce CLI, see Deploy a Custom Function to Data 360 Sandbox by Using CLI.
-
Go to your function package directory and create the deployment package if you have not already.
Use the generated
.zipfile from your current directory for upload. -
In Data 360, click the Code Extension tab.
If the Code Extension tab isn’t visible, click More and select Code Extension.
-
Click New.
-
On the first page, enter these details, and then click Next.
| Field | Description |
|---|---|
| Deployment Name | A name for your deployment. This name helps you and your team identify the custom function in the Data 360 UI. |
| Deployment API Name | A unique identifier for your custom function deployment. The API name can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, and be no more than 40 characters. It cannot include spaces, end with an underscore, or contain two consecutive underscores. |
| Description | A concise summary of what your chunking function does and its intended use. |
- On the code details page, specify this information, then click Next.
| Field | Description |
|---|---|
| Programming Language | Select Python. |
| Code Type | Select Function so that your code customizes the chunking step of the search index feature. |
| Use in Feature | Select Search Index - Chunking so that the deployed function appears as a chunking strategy option when you build a search index with Advanced Setup. |
| Compute Size | Select the compute size based on your expected workload and resource requirements. Larger sizes provide more vCPUs and memory but consume more credits. Choose the size that matches your chunking workload. The available options are: Standard - Large, Standard - X-Large, Standard - 2X-Large, and Standard - 4X-Large. To understand how the compute size affects the compute model and credit consumption, see Salesforce Help: Billing Considerations for Code Extension. |
-
Click File Upload and select your
.zipfile (for example,deployment.zip). You can also drag the file into the upload area.Use the dropdown options to remove or replace the uploaded file if needed.
-
Click Submit Code to deploy your function.
Keep the window open until the modal closes on its own. Closing the modal early can cause the upload to fail and leave the deployment in an Error state.
Use a Custom Chunking Function in a Search Index