DolphinX Web

Starting from version 3.00.6, DolphinDB Web Intereface supports DolphinX-based AI coding. AI coding introduces a new interaction model for developing DolphinDB scripts. After configuring the AI model, you can interact with DolphinDB using natural language to generate, edit, and execute DolphinDB scripts. The system can plan tasks, write the scripts, and complete the work based on your instructions.

Note:
DolphinX AI coding is available only on standalone deployment or on compute nodes of cluster deployment.

1. Initialize and Configure Agent

After deploying DolphinDB 3.00.6 or later, open the web interface to initialize the built-in AI resources and configure the agent.

1.1 Initialize Built-In Resources

  1. Go to http://<IP>:port/ and sign in to the web interface of standalone deployment or compute nodes of cluster deployment as the admin.
  2. Open Shell and click Create AI Session on the right side of the tab bar.
    Figure 1. Figure 1-1 Create AI Session
  3. Click Initialize.
    Figure 2. Figure 1-2 Initialize
  4. After initialization, you can view the default DolphinDB Coding Agent and built-in skills.
    Figure 3. Figure 1-3 DolphinDB Coding Agent
    Figure 4. Figure 1-4 Built-In Skills

1.2 Configure the AI Model

  1. Click AI Settings and then click Provider Settings.
    Figure 5. Figure 1-5 Provider Settings
  2. Click New Provider, enter the provider name, Base URL, and API Key, select the adapter type, and then click Create.
    Figure 6. Figure 1-6 Create a New Provider
  3. Click New Model. Configure the model details based on its capabilities, and then click Save.
    Figure 7. Figure 1-7 Add a New Model
    Figure 8. Figure 1-8 Newly Added Model

1.3 Bind the Model to the Agent

After adding a model, bind it to an agent for use.

  1. Click Agent Management.
    Figure 9. Figure 1-9 Agent Management
  2. On the Model Binding tab, find the target model and click the Bind icon.
    Figure 10. Figure 1-10 Bind a Model
  3. After binding, the agent can use the bound model to write code and execute tasks.
    Figure 11. Figure 1-11 Model Bound

2. Permissions

For the AI coding feature, administrators and standard users have different permissions.

2.1 Administrators

Administrators can manage all configurations for the AI coding module and manage permissions for standard users. Administrators have access to the following features:

  • Agent Management
  • Provider Settings
  • Skill Management
  • Memory Management
  • MCP Management
  • User Management

2.2 Standard Users

After an administrator grants access to agents, models, skills, and other resources, standard users can use AI features. Standard users can perform the following operations:

  • Create AI Session
  • View Session History
  • View and Manage Personal Memory
  • View Personal Usage

2.3 Standard Users with Agent Management Permission

Administrators can grant standard users permission to manage agents. Standard users with agent management permission can create and configure agents and manage the models, skills, and MCP servers bound to those agents. For detailed instructions, see User Management.

3. AI Coding

  1. After configuring an AI model and binding it to an agent, click Create AI Session to use AI coding. You can describe your requirements in natural language and use the agent to complete them. Based on the goals you have set, the agent can break the work into steps and generate DolphinDB scripts.
    Figure 12. Figure 3-1 Create an AI Session
  2. The following example shows how to use it to assist in creating databases and tables. In the chat box, enter “Create a stock database and table using the recommended partitioning scheme of DolphinDB” and then click Send. The agent automatically plans the work, breaks the task into steps, and searches for relevant information.
    Figure 13. Figure 3-2 Start a Conversation
  3. When the agent needs to run the DolphinDB script, you can review and approve the script. After approval, the AI-generated script is executed. If you do not want approvals to interrupt your work, you can choose Allow and defaults to allow for this session.
    Note:

    AI-generated scripts may have errors, so approve with caution. If you choose to allow by default for this session, you assume the risk of possible AI errors by yourself.

    Figure 14. Figure 3-3 Allow Agent to Execute the Generated Scripts
  4. The agent completes the task step by step and then provides a summary.
    Figure 15. Figure 3-4 Execution Result

4. Skill Configuration

A skill is a skill package that enhances the agent's ability to handle specific work. Configuring skills can improve the agent's performance. You can configure skills in AI Settings.

  1. Click Skill Management to view the built-in skills.
    Figure 16. Figure 4-1 View Built-in Skills
  2. Administrators can register and manage skills. Click Register Skill to register a new skill.
    Figure 17. Figure 4-2 Register a Skill
  3. Upload a skill package that complies with the specification. For details, see Skill Package Specification.
    Figure 18. Figure 4-3 Upload a Skill Package
  4. After uploading, you can modify the configurations to customize the skill. Click Register to register the new skill.
    Figure 19. Figure 4-4 Customize Skill Information
  5. After registration, the new skill is in the skill list.
    Figure 20. Figure 4-5 Registered Skill
  6. After registering a skill, bind it to an agent for use. Click Agent Management, select the agent to bind the skill to, and then click Skill Binding.
    Figure 21. Figure 4-6 Skill Binding
  7. Find the skill you want to bind, and then click the Enable button.
    Figure 22. Figure 4-7 Enable the Skill

5. Personal Center

In Personal Center, you can view the conversation history and token usage. On the Sessions tab, you can view your conversation history and perform operations such as renaming titles, generating summaries, manually triggering memory extraction, and deleting sessions.

Figure 23. Figure 5-1 Personal Center

On the Used tab, you can view the current user's token used for API calls.

Figure 24. Figure 5-2 Token Usage

Administrators can view detailed session information through Context Preview.

Figure 25. Figure 5-3 Context Preview

6. User Management

Administrators can manage permissions for standard users, including access to agents, models, and skills. Administrators can also grant standard users permission to manage agents.

Figure 26. Figure 6-1 User Management

For each agent, model, and skill, you can control user access permissions by clicking Authorize or Revoke.

Figure 27. Figure 6-2 User Permissions

Administrators can grant standard users agent management permission.

Figure 28. Figure 6-3 Grant Agent Management Permission

Standard users with agent management permission can manage agents.

Figure 29. Figure 6-4 Manage Agents

On the Used tab, administrators can view token usage for standard users.

Figure 30. Figure 6-5 View Token Consumption for Standard Users

7. MCP Management

Administrators can configure MCP Servers on MCP Management to register tools that models can call.

Figure 31. Figure 7-1 MCP Management
  1. Click Add MCP Server.
    Figure 32. Figure 7-2 Add MCP Server
  2. After entering the required information, click Save Configuration.
    Figure 33. Figure 7-3 Enter MCP Information
  3. In Agent Management, bind the MCP server to the agent.
    Figure 34. Figure 7-4 MCP Bindings

After binding, the agent can call the MCP tools.

8. Memory Management

Memory management is used to manage useful information recorded by the model during its work. In Memory Management, you can manage personal memories and control whether the memory feature is enabled. Administrators can manage public memories.

Figure 35. Figure 8-1 Memory Management

In Configuration, administrators can configure memory policies for agents.

Figure 36. Figure 8-2 Configure Memory Policies

In Task, administrators can manage memory generation tasks.

Figure 37. Figure 8-3 Manage Memory Generation Tasks