Context service

更新时间:
复制 MD 格式

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.

Usage notes

The context service is currently in an invitational preview. During the preview, you can activate the context service in the China (Chengdu) region. To request access, please submit a ticket.

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. Click the target workspace to go to the Workspace Details page.

  2. In the left-side navigation pane, select the service you want to activate. Currently, Long-term Memory is supported.

  3. Click Enable Long-Term Memory Service.

    The service begins activating, and its status changes to Creating in the Service Information section.

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.

Long-term memory service

The long-term memory service is a core capability provided by Context Service. It is built on ADBPGMem for memory data management and service configuration, and supports three memory scenarios: Session, User, and Agent. For more information, see Long-term memory service.