Retrieval-Augmented Generation Models in NetSuite 2026.1
Explore Retrieval-Augmented Generation models in NetSuite's February 16, 2026. Learn about supported capabilities and usage.
TL;DR Opening
Starting in the Weekly Update on February 16, 2026, NetSuite introduces support for Retrieval-Augmented Generation (RAG) models within the context of its SuiteScript. This feature allows users to enhance LLM responses with additional document context, improving the accuracy and relevance of generated content.
What's New
The update expands the capabilities of the llm.generateText(options) and llm.generateTextStreamed(options) functions, providing models that support RAG and preambles. These new features allow developers to give context to language models, leading to more accurate outputs relevant to their needs.
Supported Models and Capabilities
The table below outlines the models that are enabled for use with llm.generateText and llm.generateTextStreamed, highlighting their supported capabilities:
| Model Family | Model Name | RAG Supported | Preambles Supported |
|---|---|---|---|
| ModelFamily.COHERE_COMMAND | cohere.command-a-03-2025 | Yes | Yes |
| ModelFamily.COHERE_COMMAND_LATEST | cohere.command-a-03-2025 | Yes | Yes |
| ModelFamily.GPT_OSS | openai.gpt-oss-120b | No | Yes |
| ModelFamily.GPT_OSS_LATEST | openai.gpt-oss-120b | No | Yes |
Key Parameters
When utilizing these functions, here are the primary parameters:
- options.prompt (required): The input prompt for the LLM.
- options.chatHistory (optional): Previously exchanged messages to maintain context.
- options.documents (optional): A list of
llm.Documentobjects for additional context with Cohere models. - options.modelFamily (optional): Specifies which LLM to utilize based on the provided enum values.
Real-World Application
Using RAG effectively can significantly enhance the quality of responses generated by the LLM. By including relevant documents as context, the LLM can produce tailored outputs that feel more informed and relevant to specific business scenarios, thereby improving user experience.
Developers can leverage the preambles functionality to set the tone or context for the LLM, which can be particularly useful in customer-facing applications or chatbots that require a specific style or framing of information.
Who This Affects
- Developers: Create advanced scripts utilizing the new LLM features.
- Administrators: Set up parameters and manage settings for AI features.
- Business Analysts: Implement insights derived from enhanced LLM outputs.
Key Takeaways
- NetSuite's Weekly Update on February 16, 2026, rolls out support for RAG models and preambles.
- Improved accuracy and contextual relevance for LLM responses through additional document support.
- Key parameters are introduced, enabling advanced configurations in SuiteScript.
- Enhanced user experiences in applications utilizing LLMs through tailored responses.
- The functionality is incorporated into the SuiteScript 2.1 environment for developers to utilize effectively.
Frequently Asked Questions (4)
What permissions are required to use Retrieval-Augmented Generation (RAG) models in SuiteScript?
Do I need to enable a feature flag to use the RAG models in the updated `llm.generateText` functions?
Is the Retrieval-Augmented Generation (RAG) feature available for all LLM models support in NetSuite 2026.1?
How does the new RAG capability affect existing workflows in SuiteScript?
Weekly Update History (1)
Updated llm.ModelFamily to add GPT_OSS as a supported value. For more information, see Support for GPT-OSS Model in N/llm Module.
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