All Products
Search
Document Center

Platform For AI:PAI-LangStudio Retirement and Migration Guide

Last Updated:Sep 23, 2026

Retirement Notice

Due to product strategy changes, the LangStudio feature for building LLM-based applications will be officially retired on March 9, 2027 at 16:00. After this date, you will no longer be able to use LangStudio features in the PAI console, and associated support services will also be discontinued.

If you currently have production workloads that depend on LangStudio, we recommend that you evaluate and migrate to the large model service platform Alibaba Cloud Model Studio as soon as possible to ensure business continuity. This guide is intended for existing LangStudio users and covers migration paths and operational differences for workflow apps, high-code applications, knowledge bases, and common modules.

If you encounter any issues during migration, contact us at any time through a support ticket or our service hotline.

1. About Alibaba Cloud Model Studio

1.1 What is Model Studio

Alibaba Cloud Model Studio is a one-stop large model service platform designed for enterprises and developers. It provides model services, application building, knowledge bases, a tool ecosystem, and publishing and operations capabilities. Model Studio is well suited to take over the application building, debugging, deployment, and observability workloads that you previously ran on LangStudio.

For the detailed feature mapping and migration approach, see 2. Migration Overview. For more information, see Alibaba Cloud Model Studio Overview and Model Studio Application Types.

Note

The information in this document is based on the features and usage of Alibaba Cloud Model Studio as of August 31, 2025. If the platform is subsequently updated or upgraded, refer to the official Alibaba Cloud Model Studio documentation for the latest information. You can also use the Alibaba Cloud AI Assistant to ask questions or compare product features.

1.2 Pre-migration Permission Setup

Before you migrate, apply for the required permissions in advance. Ask the owner of your Alibaba Cloud account to grant RAM users of LangStudio developers the read and write permissions for Model Studio applications, create workspaces, and apply for API keys. For specific permission items and authorization procedures, see Permission management and Model Studio System Permission Policy Reference.

2. Migration Overview

2.1 Feature Mapping

The following table maps LangStudio features to their Model Studio equivalents:

Capability

LangStudio

Model Studio

How to Migrate

Application building

Workflow mode, coding mode

Workflow apps, High-code applications, Agent apps

Rebuild according to the target type. See 2.2 Application Type Mapping, 3. Migrating Workflow Apps, and 4. Migrating Coding Mode Applications

Model access

Connections manage credentials centrally; supports ModelGallery, PAI-EAS self-hosted services, and DashScope

Platform models and fine-tuning and deployment capabilities are managed centrally by Model Studio and invoked through API keys.

Switch platform models to direct API key invocation. For self-owned models, see 6.1 Connections (Model Access)

Knowledge base

Reads document source data from OSS, preprocesses, chunks, and vectorizes it, then stores the index in a vector database. Supported data types: documents, structured data, images, audio, and video.

Knowledge bases use managed storage and are available in Standard Edition and Flagship Edition. Supported data types: documents, structured data, images, audio, and video.

Re-import from the original files or other source data. See 6.2 Knowledge Bases. You can also build your own. See 7. Alternative: Building a Self-hosted RAG Service

Tools

Register custom tools

Plugin and MCP tool ecosystem

See 6.3 Tools (Plugins) and 6.4 MCP

Publishing and deployment

Deploy as a PAI-EAS online service running in your enterprise VPC

Workflow and agent apps are published as managed HTTP APIs. High-code applications are deployed through .whl packages and runtime-fc-deploy according to the official deployment guide.

See 5. Publishing, Running, and Managing Applications in Production

Observability

Integrates with Alibaba Cloud OpenTelemetry-based tracing and Log Service (SLS) to provide metrics, alerting, call-chain tracing, and log analysis

Provides complete per-span Agent Trace observability data, as well as online call statistics, latency, and other service metrics.

See 5.3 Production Management and Observability. High-code applications require manual instrumentation. See 4.5 Packaging, Deployment, and Other Model Studio Considerations

2.2 Application Type Mapping

Prioritize migrating to workflow or high-code application types and rebuild configurations individually:

LangStudio Application Type

Target Model Studio Application Type

Description

Workflow mode

Workflow app

Rebuild nodes and configurations on the Model Studio canvas

coding mode

High-code application

Restructure into a Python project that meets Model Studio requirements

Model Studio also provides agent apps, which offer simpler configuration. Evaluate whether this type suits your business scenario.

3. Migrating Workflow Apps

You can migrate LangStudio workflow apps to Model Studio workflow apps. In the Model Studio console, go to Application Management > Create Application > Workflow App to open the canvas. For more information, see Workflow application.

3.1 Node Count and Coverage

First identify nodes that have significant differences or no direct equivalent. Rebuild all other nodes on the Model Studio canvas.

Node comparison details

Category

LangStudio

Model Studio

Comparison

Key Differences

Flow control

Start

Start

Minor differences

Both define the entry parameters for a flow. Model Studio supports more variable types (including File and Array), but variable names do not support Chinese characters. You must rename any input parameters that use Chinese names.

End

End

Minor differences

Both serve as the endpoint of a flow. Model Studio offers two output modes: Text Output and JSON Output. Select JSON Output to replicate the original multi-field return structure.

Conditional Branch

Conditional Branch

Minor differences

Branch logic and priority mechanisms are the same. The operator set in Model Studio differs slightly (for example, string emptiness checks and array containment syntax). Verify each expression during migration.

Variable Aggregation

Variable Processing (aggregation group mode)

Minor differences

Functionally equivalent. Both take the first non-null value from multiple branches. In Model Studio, aggregation, assignment, and text concatenation are combined into a single Variable Processing node. Select the corresponding mode within the node.

Loop

Loop

Minor differences

Both support termination by count and by condition. In Model Studio, the maximum loop count is 100 (contact support to raise the limit), and the termination logic must be expressed as a termination condition.

Variable Assignment

Variable Assignment

Minor differences

Usage is the same. Both update intermediate variables within a loop body. In Model Studio, this capability is available in the assignment mode of the Variable Processing node.

Exit Loop

--

Minor differences

You must define a custom loop exit condition. Use a Variable Processing node to update intermediate variables within the loop body. When the preset termination condition is met, the loop ends early. If no custom termination condition is configured, the system automatically exits based on the default rules for the loop type.

Batch Processing

Batch Processing

Minor differences

Both execute a sub-flow for each item in an array. Model Studio allows you to configure concurrency and error handling strategies. Node arrangement within the sub-canvas works the same way.

Exit Batch

--

Must implement manually

Model Studio does not have this node. Use a Conditional Branch node within the sub-canvas to route to an End node as a workaround.

Flow Output

Flow Output

Minor differences

Both output content to the user mid-flow and support streaming. When rewriting, note that the variable reference syntax changes from {{ }} to ${ }.

AI capabilities

LLM

LLM

Significant differences

Prompt syntax, model sources, and tunable parameters all differ. This is the node that requires the most changes during workflow migration. See 3.2.1.

Intent Recognition

Intent Classification

Minor differences

Both use a model to classify input into preset intents and route to the corresponding branch. In Model Studio, you can add a description and examples for each intent. The tuning approach differs slightly.

Agent

Agent

Minor differences

  1. Add an Agent node directly (workflow-specific)

    Create and configure an agent node directly in the current workflow.

    Quick to configure, but the agent only takes effect in the current workflow and cannot be called as an independent service by external callers or other workflows. Suitable for rapid development in a single scenario.

  2. Import a standalone agent component (shared service / independent invocation)

    First create and publish the agent as a standalone application, then import it into the workflow as an application component.

    Supports independent invocation as a public service for multi-scenario reuse. Suitable for core business logic that requires cross-workflow or cross-business invocation.

Document Parsing

Document Parsing

Minor differences

Both convert documents to usable text. For the formats and file size limits supported by Model Studio, refer to the official documentation. The output is a structured object. Downstream references must be updated to use the new field names.

Speech Recognition

Audio Parsing

Minor differences

Functionally equivalent. Both perform speech-to-text conversion. The node name, available models, and output fields differ. Reconfigure the node using the settings on the configuration panel.

Data retrieval

Knowledge Base Retrieval

Knowledge Base

Significant differences

Both the output structure and invocation method have changed. The retrieval limit depends on the selected mode. See 3.2.3.

HTTP Request

API

Significant differences

The network model changes from your enterprise VPC to a platform-managed service. Accessing internal network services requires additional network connectivity setup. See 3.2.4.

IQS / SerpAPI Web Search

--

Minor differences

In Model Studio, you can use a web search MCP service to replace the IQS / SerpAPI web search functionality in LangStudio. This service provides standard real-time web search capabilities and can be called directly from agents, workflows, and external code.

Data processing

Python Development

Script

Significant differences

The interface declaration approach is reversed (panel-based rather than code-based), and third-party dependencies are not supported. See 3.2.2. We recommend using a local AI coding tool to read the Model Studio specification and make the required changes.

Template Conversion

Variable Processing / Script

Minor differences

The node reference pattern maps directly to the text output mode of Variable Processing. If you used Jinja2 mode, switch to a Script node to assemble strings.

List Operations

--

Must implement manually

If you need to filter or sort list data in a workflow, use one of the following alternatives:

  1. Script node: Add a Python or JavaScript Script node in the workflow and write your own list processing logic. Script nodes support this use case.

  2. Template Conversion node: If you only need to format list output or perform simple loop rendering, use the Jinja2 mode of the Variable Processing node with {% for %} syntax to iterate the list and generate text output.

For nodes marked as "Minor differences," rebuild the configuration on the Model Studio side according to the differences listed in the table above. For complete parameter descriptions, see Workflow application. The following sections cover the nodes with "Significant differences" and "Must implement manually."

3.2 Nodes with Significant Differences

The following sections focus only on the key differences that require redesign.

3.2.1 LLM Node

Difference

Usage in LangStudio

Usage in Model Studio

Variable reference syntax

Jinja2 templates; variables written as {{ variable }}

Use ${variable}. We recommend using the / shortcut to select upstream variables.

Prompt logic

Supports Jinja2 control structures such as {% for %}, {% if %}, and filters

Control structures are not supported. Move loop, conditional, and formatting logic to a Script node first, then pass the result into the prompt.

Model source

Connections manage credentials centrally; supports ModelGallery, PAI-EAS self-hosted services, DashScope, and other sources

Select models from the Model Studio platform or models deployed by Model Studio. For PAI-EAS self-hosted models, follow the instructions in 6.1 Connections (Model Access).

Tunable parameters

Provides Top K, Presence Penalty, Frequency Penalty, Seed, and Stop Sequences

These parameters have no corresponding configuration fields. Use prompt constraints instead, or apply post-processing in a downstream Script node.

Batch invocation

Requires wrapping in an outer Batch Processing node

The node has a built-in batch processing mode. You can invoke the model on each item in a list directly (up to 100 items, concurrency 1-10). The outer Batch Processing node can be removed.

Error handling

No node-level configuration

Supports configuring error handling strategies: return a default value or follow a separate error branch.

Example: Prompt rewriting

LangStudio variable:

{{ variable }}

Model Studio variable:

${node.variable}

3.2.2 Python Development to Script Node

Difference

Usage in LangStudio

Usage in Model Studio

Interface declaration

Code defines the interface: the entry function uses a @tool decorator, and inputs and outputs are automatically parsed from type annotations

Panel defines the interface: declare input variables on the node panel first, then read them from the params dictionary in your code

Entry function

Function name is customizable; can return dataclass or other structured objects

Must be main(params) and must return a dictionary

Third-party dependencies

Declare pandas, requests, numpy, and others in requirements.txt

Third-party libraries are not supported. Only the standard libraries pre-installed in the runtime environment are available. Restructure using one of the three paths below.

File types

Supports File type inputs and outputs

Not supported. File processing is handled by dedicated Document / Image / Audio Parsing nodes.

Streaming output

Supports streaming pass-through (streaming_pass_through)

Not supported

Available languages

Python

Python, JavaScript

Downstream references

Reference by custom node name

Nodes are auto-named in creation order (Script_1, Script_2, ...). References use the format ${Script_1.output1}. Because names may differ from the original, verify all references.

Example: Interface rewriting

In LangStudio, the entry is defined by a decorator and type declaration:

@tool
def invoke(...): ...

In Model Studio, declare input variables on the node panel and use:

def main(params):
    return {"output": params["input"]}

Three alternative paths for third-party dependencies:

  1. Rewrite with standard libraries: Suitable for lightweight logic.

  2. Move to a Function Compute node: Suitable for heavy dependencies or complex logic, but the timeout is fixed at 60 seconds.

  3. Package as an independent service and call via an API node: Suitable for existing services or long-running tasks.

During the migration assessment phase, inventory the dependencies of all Python nodes first. This is often the main source of migration effort.

3.2.3 Knowledge Base Retrieval to Knowledge Base Node

Difference

Usage in LangStudio

Usage in Model Studio

Top K limit

Maximum 100

The limit depends on the selected API or node invocation method. If your application relies on a large recall volume, verify the current limit for your target mode and adjust your retrieval strategy accordingly.

Output structure

result is an array; each element contains content, score, id, and metadata

result is a structured object. Retrieved chunks are located at result.chunkList. Fields include content, title, documentName, score, docUrl, images, pageNumber, and more. An additional result.rewriteQuery field is also provided. Downstream references must be updated.

Invocation method

Retrieval is executed unconditionally each round

A new invocation method configuration is available: Always Invoke / Smart Invoke (the model decides whether to retrieve; a knowledge base description is required) / Legacy Invoke. During migration, select "Always Invoke" to match the original behavior as closely as possible.

Association limits

No such limit

In workflow apps: document search type up to 5, data query type up to 5, image Q&A type up to 1. For details, see Quotas and Limits

Audio and video knowledge bases

Supported

Not supported in workflow apps. For details, see Quotas and Limits

Four strategies to compensate for a lower Top K:

  1. Improve chunk quality so that each chunk carries more complete semantics, reducing the reliance on recall volume.

  2. Enable a reranking model to improve ranking accuracy with a smaller recall volume.

  3. Enable knowledge base filtering to perform secondary intelligent filtering on retrieved results.

  4. Split documents across multiple knowledge bases by topic and allocate recall quotas to each.

Example: Rewriting retrieval result references

In LangStudio, iterate over retrieval results in a prompt:

{% for doc in documents %}
{{ doc.content }}
{% endfor %}

In Model Studio, reference the Knowledge Base node output structure directly:

${KnowledgeBase_1.result}

If you need to customize the output format (for example, appending source file names), use a Script node to process result.chunkList first, then pass the assembled text into the prompt.

3.2.4 HTTP Request to API Node

Difference

Usage in LangStudio

Usage in Model Studio

Network topology

The application is deployed as a PAI-EAS service running in your own VPC

The workflow API node uses a fixed public IP as its egress and cannot directly access services in your enterprise VPC. For details, see Node Description - API and Access Model Studio APIs over a private network

Calling internal services

No additional configuration needed; enter the internal address directly

Expose the service through a supported method and configure access control. Private network access from an enterprise VPC to Model Studio services is a separate capability.

Request methods

Supports HEAD and OPTIONS

HEAD and OPTIONS are not supported

Request body formats

Supports x-www-form-urlencoded and binary

These two formats are not supported

Authentication configuration

Provides dedicated Bearer / Basic authentication configuration fields

No dedicated configuration fields. Manually add the Authorization header.

Note: Egress addresses may change. Configure your allowlist according to the official networking documentation.

This is the item you should verify first during the migration assessment phase, because public exposure or VPC connectivity often requires coordination with your network and security teams.

3.3 Integration Testing

Click Test in the upper-right corner of the canvas to open the test panel. It provides three modes: Text Conversation (multi-turn, retains context; click a node to view its input and output), Text Generation (single-turn, supports synchronous and asynchronous), and Audio/Video Interaction. The upper-right corner also has a Checklist entry that lists the configuration items that must be completed before a run. We recommend reviewing it before testing.

Focus on verifying four types of issues: whether variable references are passed correctly (especially after prompt syntax rewriting), whether conditional branch and loop termination logic match the original application, whether external service calls fail due to unconfigured allowlists, and whether the Script node output structure matches what downstream nodes expect.

4. Migrating Coding Mode Applications

You can migrate LangStudio coding mode applications to Model Studio high-code applications.

4.1 Fundamental Change in Development Approach

LangStudio provides a cloud-based Web IDE. Model Studio high-code applications use local development instead.

The migration process is local development -> package as .whl -> upload -> cloud verification:

Capability

Supported by Model Studio

Description

Edit code online

Not supported

The console has no code editor. Code must be written locally. Even a one-line change requires repackaging the .whl file and redeploying.

Edit configuration online

Supported

Environment variables, MCP tool mounting, resource specifications and instance counts, and gateway routes can all be modified in the console. Note that after adding or removing tools, you must redeploy for changes to take effect.

Debug and test online

Supported

The console provides a text conversation panel (send messages directly to a deployed application for testing) and API testing (manually call GET /health and POST /process). Use build, deployment, and invocation logs to troubleshoot issues.

If you prefer to continue development and debugging in the cloud, you can use PAI's DSW (Data Science Workshop).

4.2 Project Structure Changes

Typical structure of a LangStudio coding mode application (LLM Basic template):

project/
├── agent.py          # Entry point: FastAPI app and API endpoints
├── agent_loop.py     # Core logic: LLM calls and tool execution loop
├── agui.py           # AG-UI Protocol event stream conversion
├── skills.py         # Skill discovery, loading, and execution
├── requirements.txt
├── .env              # Environment variables
└── README.md

Five changes are required to migrate to Model Studio:

Item

LangStudio

Model Studio High-code Application

Entry file

agent.py (exposes a global FastAPI object named app)

Must be named **main.py**

Health check

No mandatory requirement

Must provide **GET /health**

Conversation endpoint

AG-UI Protocol; must support /ag-ui

Default is /process, following the Agent API protocol

Dependency declaration

requirements.txt

Same. We recommend pinning versions with **==**. Using >= is not recommended.

Environment variables

.env in the project root directory, loaded at runtime startup

Console: Deploy -> Configuration -> Environment Variables

If the entry file is not named main.py, the console displays "Deploying" until it times out. The health check endpoint is how Model Studio determines whether the application started successfully. If the endpoint is unreachable, the deployment is considered failed.

@app.get("/health")
def health_check():
    return "OK"

Implement the default /process endpoint according to the Agent API protocol.

The runtime requires Python >= 3.10:

pip install "agentscope-runtime[deployment]==1.0.0"

4.3 Changes to Model Invocation in Code

Replace the existing model connections with calls to platform models through a Model Studio API key.

Set the DASHSCOPE_API_KEY environment variable, then call models using the DashScope SDK or the OpenAI-compatible protocol:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["DASHSCOPE_API_KEY"],
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
)
resp = client.chat.completions.create(
    model="qwen-plus",
    messages=[{"role": "user", "content": "Hello"}],
)

Model Studio application development currently supports only the China (Beijing) region. For model API calls, use the endpoint for the China (Beijing) region. For self-hosted model integration, see Section 6.1.

4.4 Changes to Knowledge Base Invocation in Code

High-code applications can call the Knowledge Base Retrieve API or SDK directly to perform retrieval.

When calling MCP services, application components, or data connectors, connect to them through their respective interfaces. After adding or removing tools, you must redeploy. For details, see .

4.5 Packaging, Deployment, and Other Model Studio Considerations

Code packages support only the .whl format and are uploaded via the command line:

# First deployment
runtime-fc-deploy --deploy-name <application_name> --whl-path <PATH_TO_WHL> --telemetry enable

# Update deployment
runtime-fc-deploy --update <HIGH_CODE_APP_ID> --whl-path <PATH_TO_WHL> --telemetry enable

Before uploading, configure ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, and optional workspace variables. For the first deployment, follow the console prompts for authorization.

Deployment resources: Select specifications and the minimum number of instances based on your workload. For pricing, refer to the billing page.

Application observability requires adding instrumentation to your code:

from agentscope_runtime.engine.tracing import trace, TraceType

@trace(trace_type=TraceType.LLM, trace_name="llm_call")
def call_llm(...):
    ...

Enable --telemetry enable during deployment to view invocation data in Application Observability.

Networking and publishing: To access enterprise internal network resources, configure networking according to the methods currently supported for high-code applications. Configure domain names and authentication through the gateway.

5. Publishing, Running, and Managing Applications in Production

LangStudio applications are deployed as self-managed PAI-EAS services. Model Studio publishes applications as managed HTTP APIs or high-code services. Resource and version management change accordingly.

Aspect

LangStudio (PAI-EAS)

Model Studio

Deployment artifact

EAS online service instance

Managed HTTP API (workflow / agent) or high-code application deployed according to the official guide

Resource management

Select instance types, replica counts, and scaling policies

Workflow apps are fully managed. High-code apps support configurable specifications and instance counts.

Invocation authentication

EAS endpoint + token

DashScope API key, or API gateway token for high-code apps

Networking

Direct access within VPC

Enterprise VPCs can call Model Studio through PrivateLink in supported regions. Workflow apps calling enterprise internal services require other supported solutions.

Rate limiting

Determined by the number of EAS instances

Calculated per Alibaba Cloud account and per model. All workspaces under the same Alibaba Cloud account share the quota.

Observability

PAI / ARMS

Console: Application Observability + Model Monitoring

Multi-channel distribution

Requires custom development

Built-in support for web, DingTalk, WeChat, audio/video, and other channels

5.1 Publishing and Invocation

After publishing a workflow or agent app, obtain the API details from the console:

curl -X POST https://dashscope.aliyuncs.com/api/v1/apps/{APP_ID}/completion \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "Hello"}, "parameters": {}}'

For streaming output, use the X-DashScope-SSE: enable header. For multi-turn conversations, pass session_id or messages as described in the API documentation.

Synchronous call timeouts depend on the access domain: the default domain has a 600-second timeout, while a workspace-specific domain supports up to 3,600 seconds. For longer tasks, switch to asynchronous execution or split the task.

Applications can also be published as application components or connected to sharing channels. The specific scope of support depends on the application type and official documentation.

5.2 Rate Limiting and Quotas

Model Studio calculates RPM and TPM quotas per Alibaba Cloud account and per model. A 429 response indicates that rate limiting has been triggered. RAM users, workspaces, and API keys under the same Alibaba Cloud account share the quota.

Before migrating high-concurrency workloads, evaluate your model quotas and apply for quota increases if necessary. For details, see Rate limiting.

5.3 Production Management and Observability

Application Observability lets you view call chains, inputs and outputs, latency, token consumption, and execution status. The scope of support and data retention period are described in the console documentation.

Model Monitoring lets you view metrics such as call volume, failure rate, rate limiting, and latency. You can integrate with logging, alerting, or monitoring systems based on current capabilities.

Version iteration: Maintain versions in your local code repository. Workflows can be imported and exported to save snapshots. High-code applications are redeployed with a new .whl package using --update. The Model Studio DSL cannot directly import the LangStudio flow.dag.yaml format.

6. Common Module Mapping

6.1 Connections (Model Access)

Model Studio does not have an equivalent "connection" object. Each type of resource is managed by its respective module, and model calls use API keys.

Model Studio platform models are selected from the ModelGallery and called through API keys using the DashScope or OpenAI-compatible protocol.

Customer-owned models can be handled through three paths:

Path

Applicable Scenario

Description

Model import

Existing fine-tuned results based on Qwen

Only supports importing LoRA adapters from OSS. Full-parameter weights are not supported. Model and parameter restrictions are subject to the current official documentation.

Platform deployment

Requires dedicated compute resources and stable throughput

Deploy using the dedicated inference service. When calling, set model to the model code generated by the deployment.

Keep on PAI-EAS, call from Model Studio

Fully custom models, third-party models, or non-Qwen models

Call through an API node, or package as a custom plugin / MCP service, and handle network connectivity and access control.

For details, see Model import and Model deployment.

6.2 Knowledge Bases

Important prerequisite: Vector data in knowledge bases cannot be directly exported or migrated. You must re-parse, re-chunk, and re-vectorize from the original files or other source data. Make sure your source data is complete and accessible.

Model Studio knowledge bases provide four types. The type cannot be changed after creation:

Type

LangStudio Data It Replaces

Description

Document search

Documents (PDF / DOCX / PPT / MD / TXT, etc.)

Three scenarios: basic document Q&A, visual understanding (complex layouts and charts), and rapid Q&A

Data query

Structured data (xlsx)

NL2SQL-based retrieval. The first row must be a header.

Image Q&A

Images

Multimodal image and text understanding. Requires a publicly accessible image_url. Each image must be <= 3 MB.

Audio and video search

Audio, video

MP3 / WAV / MP4 / AVI, etc. Not supported in workflow apps. Use agent apps instead.

  • Multimodal data: Select the access method based on data type.

    • Image Q&A uses public image_url fields in structured data. Audio and video search imports from local storage or OSS.

    • For documents with complex layouts or charts, select the visual understanding scenario in Document Search.

    • Audio and video are imported from local storage or OSS and processed by audio/video parsers.

  • Parsing and chunking: Select a parser and chunking strategy before creation. These cannot be modified after creation. Validate retrieval accuracy with sample data first.

  • Embedding and ranking models: Select embedding and reranking models at creation time. These cannot be changed after creation. If the embedding dimension changes, re-validate retrieval results.

  • Editions: For pricing details, see the official pricing page.

  • Association and retrieval limits: These depend on the application type and invocation mode. Verify the current limits before migration.

  • Migration steps: Validate and tune with sample data -> create a production knowledge base and import all data -> attach to your application -> benchmark results. Convert source files first if the format is not supported.

For details, see Knowledge base.

6.3 Tools (Plugins)

Model Studio uses plugins to replace tools: agents can select plugins autonomously, while workflows call them deterministically through a Plugin node.

Official plugins include code_interpreter, calculator, text_to_image, quark_search, generate_qrcode, github_search, and more. These can replace some third-party calls.

Custom plugins are configured in the console with interface and authentication details. After completion, they can be published as MCP services. For detailed field descriptions, refer to the console.

For details, see Plugin overview and Custom plugins.

6.4 MCP

Model Studio provides MCP as a platform-level capability, with an MCP Gallery, cloud-hosted services, and a workflow MCP node.

Custom MCP services can be integrated as follows:

  • Script deployment: Use type: stdio or type: sse / streamableHttp to connect your service.

  • Import from AI Gateway: Wrap existing RESTful APIs as MCP tools.

  • Import from Alibaba Cloud OpenAPI: Create a BailianMcpRole* and grant the required permissions.

MCP mounting, tool, and configuration limits are subject to change as capabilities are updated. Verify the current official documentation before migration.

6.5 Other Common Modules

Model Studio also provides the following platform capabilities that have no independent equivalent in LangStudio. Introduce them as needed during migration:

Module

Capability

Prompt templates

Preset and custom templates with ${variable} syntax. Supports OpenAPI management. Available only in China (Beijing).

Memory store

Upgraded long-term memory that supports memory segments and user profiles. Can be reused across sessions.

Data connections

Connect to MySQL / PostgreSQL / PolarDB-X / OSS / Yuque and other data sources, or synchronize data from OSS, Feishu, DingTalk, or SharePoint.

Skills

ZIP skill packages (root directory contains SKILL.md, <= 10 MB). Supports official and custom skills with multi-version management. Can take over the skills/ directory from LangStudio coding mode projects.

AI safety guardrails

Input and output content safety detection. Requires a separate purchase and global authorization. Include the X-DashScope-DataInspection request header when calling.

Application evaluation

Automated evaluation, manual evaluation, and evaluation set management. Recommended for benchmarking before and after migration.

Of these, Skills and Application Evaluation are the most relevant to migration: the former takes over the skill directory from coding mode projects, and the latter lets you build evaluation sets to compare output consistency before and after migration.

7. Alternative: Building a Self-hosted RAG Service

In addition to using Model Studio knowledge bases, RAG scenarios can also use a self-hosted RAG service.

LangStudio knowledge bases can use enterprise-owned Elasticsearch or Milvus to store vector indexes. During migration, you can retain the vector database and data processing pipeline and only replace the upper-layer application.

Self-hosting is suitable when data cannot leave the enterprise boundary, regional compliance requirements exist, retrieval needs exceed the limits of the selected invocation mode, or you already have an Elasticsearch / Milvus data pipeline.

Workflow apps can call the retrieval service through an API node. High-code applications can call the service directly or package it as a custom MCP service.

8. FAQ

Q: My Python nodes use third-party libraries like pandas. The Script node in Model Studio does not support them. What should I do?

Three options: rewrite with standard libraries; move the logic to a Function Compute node (which supports a full dependency environment, with a fixed 60-second timeout); or package as an independent service and call through an API node. For details, see 3.2.2 Python Development to Script Node.

Q: My original application runs inside an enterprise VPC and accesses internal network services. How do I handle this after migration?

When a workflow API node needs to access enterprise internal services, you must expose the service through a supported method and configure access control. For enterprise VPC access to published services, follow the private network access instructions. For details, see 3.2.4 HTTP Request to API Node.

Q: Can I still use my self-hosted models on PAI-EAS after migration?

Yes, but the integration method changes. Model Studio does not support registering external model endpoints as platform models. In a workflow, use an API node to call the model over HTTP, or package it as a custom plugin / MCP service. If the model is a Qwen-based LoRA fine-tuned result, you can also import it into Model Studio. If you need dedicated compute resources, redeploy on the Model Studio dedicated inference service. For details, see 6.1 Connections (Model Access).

Q: Can I directly migrate the vector data from my knowledge base?

No, you cannot migrate it directly. You must re-parse and re-vectorize from the original files or other source data. If you choose a self-hosted RAG solution and already use Elasticsearch / Milvus, the vector data resides in your own instance and can be reused directly.

Q: The Top K limit of the selected retrieval mode is lower than what my original application uses. What should I do?

First optimize chunking and reranking, then evaluate splitting knowledge bases or building a self-hosted RAG service. For details, see 7. Alternative: Building a Self-hosted RAG Service.

Q: How do I confirm that quality has not degraded after migration?

We recommend using the Application Evaluation capability in Model Studio to build an evaluation set. Run your migrated application against real request samples from the original application and compare output consistency and recall accuracy. Focus on the three areas most likely to differ: prompt syntax rewriting, knowledge base recall limit changes, and Script node rewriting.

Q: If Model Studio does not meet our enterprise requirements, are there other options?

We recommend the following three Alibaba Cloud products. Select based on your business requirements and technical roadmap. If you have further questions, consult your account manager.

  1. Function Compute AgentRun

    A one-stop Agentic AI infrastructure platform built on a high-code foundation. Based on a serverless architecture, it provides millisecond-level elasticity, enterprise-grade security sandboxes, unified model and tool governance, and end-to-end observability. It covers the full lifecycle of enterprise Agent applications from development and deployment to operations.

  2. AgentCore - Agent Building and Governance Platform

    Unified building and governance of enterprise agents across the full agent lifecycle. Supports multiple building modes, unified identity authentication, and team collaboration orchestration. Manages self-developed, open-source harness, and commercial SaaS agents on a single platform.

  3. AgentLoop - Agent Observability and Optimization

    A one-stop self-evolution platform for enterprise agents. Covers five core capabilities: observability, evaluation, tuning, memory, and auditing. Helps enterprises build an agent evolution flywheel with a focus on continuous optimization of agent applications.

Related Documentation