Parameters for SuiteScript LLM Embedding in NetSuite 2026.1
Starting in NetSuite 2026.1, new parameters for the SuiteScript LLM embedding feature enhance integration with the OCI Generative AI service.
TL;DR Opening
Starting in NetSuite 2026.1, the SuiteScript LLM embedding feature introduces new parameters for better control over generating semantic embeddings from text. These enhancements offer developers flexibility in configuring integration with the OCI Generative AI service.
What's New in SuiteScript LLM Parameters
In the 2026.1 release, several new parameters have been introduced in SuiteScript for refining how developers utilize the large language model (LLM) for embedding purposes. Here’s a breakdown of these parameters:
Available Parameters
-
options.inputs (string[]): Required
- An array of input strings for which you want to get embeddings.
-
options.dimensions (number): Optional
- Specifies the number of dimensions for the returned embeddings. Ranging from 1 to 1536, this allows developers to adjust the level of detail captured by the embeddings, with 1536 being the default for the supported model.
- Context Note: The current embed model, Cohere Embed v4.0, outputs embeddings with 1536 dimensions, capturing more nuanced information than its predecessors.
-
options.embedModelFamily (string): Optional
- Defines the model family to be used. By default, the
Cohere Embed model(cohere.embed-v4.0) is applied unless specified otherwise.
- Defines the model family to be used. By default, the
-
options.ociConfig (Object): Optional
-
Configuration used for unlimited access through the OCI Generative AI service, allowing integration with Oracle Cloud accounts.
-
Configuration overrides from this parameter will supersede those set in the AI Preferences page within NetSuite.
-
Sub-parameters:
- compartmentId (string): Identifies the compartment within the Oracle Cloud.
- endpointId (string): Required for custom AI clusters.
- fingerprint (string): Only NetSuite secrets are acceptable for this parameter.
- privateKey (string): Needs to be a NetSuite secret as well.
- tenancyId (string) & userId (string): Required OCIDs for tenancy and user identification.
-
-
options.timeout (number): Optional
- Defines the maximum waiting time for the LLM's response in milliseconds, defaulting at 30 seconds.
-
options.truncate (string): Optional
- Specifies how to truncate inputs that exceed 512 tokens using defined methods from the llm.Truncate enumeration.
Example Syntax
Here’s a simple representation of how to use the new embedding parameters in a script:
"text-purple-400">const response = llm.embed({ inputs: ["Hello World!"], embedModelFamily: llm.EmbedModelFamily.COHERE_EMBED, dimensions: 512});Who This Affects
- Developers: Those building applications using the N/llm module will find these parameters crucial for optimizing their embedding strategies.
- Administrators: Configuration of OCI credentials for unlimited usage will require attention to these parameters.
Key Takeaways
- The SuiteScript LLM embedding parameters in NetSuite 2026.1 allow for flexible configuration with Oracle Cloud AI services.
- Developers can specify both the dimension size of embeddings and the model family used.
- OCI configuration details can be managed directly through SuiteScript to ensure unlimited access.
- Always consider the default settings to avoid unnecessary complexity in your embedded integration.
Frequently Asked Questions (4)
What parameters are required to use the SuiteScript LLM embedding feature?
How can I change the default number of dimensions for embeddings in SuiteScript?
Do I need to configure OCI credentials separately for unlimited access when integrating with SuiteScript?
Is the SuiteScript LLM embedding feature compatible with all versions of the Cohere Embed model?
Weekly Update History (1)
Added a new parameter, options.dimensions, to llm.embed(options). This parameter lets you limit the number of dimensions that are returned in generated embeddings.
View Oracle DocsWas this article helpful?
More in SuiteScript
- N/https Module: Binary File Support in NetSuite 2025.2
NetSuite 2026.1 adds binary file support to N/https for streamlined file handling.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
- Create-Form Operation in NetSuite 2026.1 REST Web Services
Create-form operation in NetSuite 2026.1 APIs streamlines record creation and enhances efficiency.
Also from NetSuite 2026.1
- Custom Labels for Additional Item Prices in NetSuite 2026.1
Custom labels enhance transaction summaries in NetSuite, improving clarity for item prices.
- Applied Trans Date and Period Enhancements in NetSuite 20...
Latest updates in NetSuite 2024.1 enhance Accounting SuiteApps with transaction line distribution features.
- Data Not Copied from Production to Sandbox in NetSuite 2026.1
In NetSuite 2026.1, key data like domains and customer roles are not copied to sandbox accounts during refreshes, impacting setup.
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category