FAQ

更新时间:
复制 MD 格式

Accounts and permissions

Sign in with enterprise identity systems

Configure Single Sign-On (SSO) through Alibaba Cloud RAM to let employees sign in with corporate accounts from Okta or Microsoft Entra ID.

See Enterprise single sign-on to Alibaba Cloud using your own identity system.

Note

After configuring SSO, grant LangStudio permissions to the RAM user. Cloud service dependencies and authorization: LangStudio.

Model invocation

APIConnectionError: Connection error when calling Alibaba Cloud Model Studio models

APIConnectionError: Connection error

Runtime VPC lacks internet access. Alibaba Cloud Model Studio models require outbound connectivity.

Configure SNAT to enable internet access. Use the SNAT feature of an Internet NAT gateway to access the Internet.

Knowledge base

Choose between Faiss and Milvus

Criteria Faiss Milvus
Use case Testing and prototyping Production workloads
Infrastructure Lightweight, no separate database instance Requires a separate database instance
Scale Smaller datasets Larger-scale data processing
Performance Adequate for development Better performance and scalability

Start with Faiss for testing. Switch to Milvus when moving to production or working with larger datasets.

The run failed due to reaching the timeout: 300 with Faiss-based knowledge bases

The run failed due to reaching the timeout: 300

Insufficient runtime resources. Faiss loads vector data from OSS into memory, which requires significant resources.

Increase runtime resource specification:

  • Upgrade the existing runtime: In the runtime list, click the runtime name, then click Change Settings in the upper-right corner. Select a larger Instance Type, such as 8-core or 16-core CPU.

  • Replace the runtime: Delete the current runtime, create a new one with higher specification, and update your application flow to use the new runtime.

ToolLoadError... (AccessDenied) with Faiss-based knowledge bases

Tool load failed in 'index_lookup': (ToolLoadError) Failed to load package tool 'Index Lookup': (AccessDenied)

image

The application flow lacks permissions to save the index file to the specified OSS path.

Recreate the knowledge base index with correct permissions:

  1. Recreate the knowledge base index using the default PAI role.

  2. Set Output OSS Path to a directory within the OSS Bucket that serves as your workspace's default storage path.

  3. Reconfigure the knowledge base index node in the application flow to use the newly created index.

See Knowledge base index management - Create a knowledge base index.

image

Billing

Unexpected PAI-DSW charges

LangStudio application flow development runs on PAI-DSW instances. Starting a runtime launches a DSW instance, and billing begins immediately.

Stop the DSW instance from the DSW instance list when not in use to avoid charges.

image