Dify administration and development

Updated at:
Copy as MD

This document describes the core workflow of using Dify in the Data Management Service (DMS) console, including workspace management, member collaboration, and LLM application development, to help you quickly build intelligent applications.

Prerequisites

Before you begin, complete the prerequisites described in Dify one-click deployment.

Overview

  1. Enter a workspace: After you log on to the DMS console, you can access the Dify environment.

  2. Add workspace members: Add members to your workspace for collaborative development.

  3. Develop LLM applications: Use Dify to develop LLM applications and accelerate your enterprise's adoption of intelligent solutions.

Enter a workspace

  1. Log in to DMS 5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Data+AI > Dify.

    Note

    If you use the DMS console in normal mode, choose Data+AI > Dify in the top navigation bar.

  3. In the left-side navigation pane, click Workspace. On the workspace list page, click the name of the workspace you created.

Add workspace members

  1. In the lower-left corner of the workspace page, choose Workspace Management.

  2. Click Add Member. In the dialog box that appears, select the Member and Role.

    Note

    An administrator must first add members to DMS, either by manually adding them as DMS users or by synchronizing RAM users. Otherwise, the intended members will not appear in the Member drop-down list.

    In the top navigation bar of the DMS console, click the User Management tab. Then, click Add and select Add Account or Sync RAM User from the drop-down menu.

    The following table describes the permissions for each workspace role.

    Role

    Description

    workspace admin

    Note

    The creator of a workspace is the default administrator of that workspace.

    This role has full permissions to manage the workspace, including adding and removing members, and editing member roles.

    developer

    This role has permissions to develop and maintain data, onboard data sources, execute SQL queries, and develop and maintain Notebooks and task orchestration.

    Note

    Your ability to use a data source depends on whether your Alibaba Cloud account has the necessary permissions, such as query and modification permissions.

    O&M

    They can view task status and take action in the task orchestration O&M interface.

    guest

    This role has read-only permissions. Guests can view SQL statements, Notebook file code, task flow designs, and code content in task orchestration.

  3. Click Confirm.

(Optional) Edit or redeploy Dify

  • Modify configuration: To change the basic configuration, you must first release the resources.

  • Redeploy: Restarts the service.

  • Release computing resources: Releases the compute resources used by Dify. After release, if you reconfigure resource rules, you must reconfigure the resource specification.

  • Reconfigure computing resources: In the Computing Resources module, click Reconfigure Resources to adjust the number of replicas, configuration method, and resource specification.

  • Change billing method: In the Computing Resources module, locate the billing method setting.

    • If the current method is subscription, you can click Switch to pay-as-you-go to change it.

    • If the current method is pay-as-you-go, you can click Switch to subscription to change it.

Develop LLM applications

  1. Open Dify.

    On the left side of the workspace, click the Dify image icon.

  2. Configure Dify workspace accounts and role permissions.

    In the Dify workspace, click your profile picture in the upper-right corner and select Settings.

    Note

    By default, your DMS logon account is also your Dify workspace account and is granted the owner role. The owner can modify other users' roles.

  3. Develop your LLM application. For detailed instructions, see the official Dify documentation.

    For issues with this feature, contact DMS technical support.

FAQ

Q: What happens if I change the credentials for my configured ApsaraDB RDS for PostgreSQL, Tair, or AnalyticDB for PostgreSQL database? Will this affect my resources?

A: Yes. If you change the database credentials, you must update them in DMS instance management and then redeploy the Dify workspace. For instructions on configuring database credentials, see Edit instance information.