All Products
Search
Document Center

AnalyticDB:Context service

Last Updated:Jun 23, 2026

Context Service is a managed AI service from AgenticDB that provides context capabilities, including out-of-the-box features such as long-term memory. You can start making API calls immediately after creating a workspace, activating the required services, and authenticating with an API key.

Features

As AI technology evolves, AI agent applications are moving from single-turn conversations to complex interactions involving multiple turns, tasks, and roles. Contextual capabilities such as long-term memory, knowledge retrieval, and role consistency have become essential for building high-quality AI agent applications. However, developing these capabilities from scratch requires significant resources for infrastructure deployment, debugging, and maintenance. This high barrier to entry and long development cycle can slow down the adoption of AI applications.

The context service from AgenticDB provides a suite of ready-to-use, managed AI context capabilities. By fully managing features like long-term memory, it abstracts away the complexities of deploying and maintaining underlying resources. This allows developers to activate and use these services on demand, so they can focus on building their core business logic.

Billing

This service is free of charge during the invitational preview. For details about the preview period, see AgenticDB for AnalyticDB for PostgreSQL Now in Invitational Preview.

Workspace management

AgenticDB uses workspaces to isolate data between different business scenarios.

Create a workspace

  1. Log on to the AnalyticDB for PostgreSQL console.

  2. In the left-side navigation pane, click Context Service.

  3. On the Context Service page, click Create Workspace.

  4. In the Create Workspace dialog box, enter a Workspace Name and click OK.

Activate a context service

  1. On the right side of the Service area in the target workspace, click Create Service.

  2. Select the Service Type. Currently, Long-term Memory and Creative Studio are supported.

    Currently, this service is available only in selected regions. Check the console for available regions.

  3. Click Create Now.

    After the service status changes to Running, the service is activated.

API key management

  1. Click the target workspace to go to the Workspace Details page.

  2. In the left-side navigation pane, click API Key Management.

  3. At the top of the page, click Create API key.

  4. In the Create API Key dialog box, enter an API Key Name, select the Grant Service, such as the long-term memory service, and then click OK.

    After the API key is authorized, you can use it to make API calls to the service.

Delete a workspace

You can delete a workspace after confirming that its associated services are no longer in use.

Important

Data is isolated between workspaces. Proceed with caution.

  1. Log on to the AnalyticDB for PostgreSQL console.

  2. In the left-side navigation pane, click Context Service.

  3. On the Context Service page, in the target workspace area, click the image Delete button.