Install
openclaw skills install alibabacloud-milvus-manageAlibaba Cloud Milvus full-stack Skill for two planes: control-plane instance management via aliyun CLI, and data-plane Milvus operations via pymilvus. Use when users want to create, inspect, scale, configure, network-enable, or whitelist Alibaba Cloud Milvus instances; or connect to Milvus and perform collection management, vector insert/search, hybrid search, full-text search, index management, partition/database management, or RBAC with Python.
openclaw skills install alibabacloud-milvus-manage[MUST] CLI User-Agent — Every aliyun CLI command invocation must include:
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage
[MUST] PyMilvus User-Agent — Every pymilvus SDK connection must include:
grpc_options={"grpc.primary_user_agent": "AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage"}
Alibaba Cloud CLI version must be >= 3.3.3.
Handle two distinct planes:
aliyun CLI.pymilvus Python code.Treat SKILL.md as the router. Load references/*.md for detailed commands, parameters, and examples.
Use this skill for:
pymilvus: connect, collections, vectors, search, indexes, partitions, databases, RBAC.Do not use this skill for:
Route here when the user asks about:
Read:
Route here when the user asks about:
Read:
aliyun profile. Verify credentials are configured before API calls.aliyun CLI invocation must include the required User-Agent flag:aliyun ... --user-agent AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage
aliyun must include --force.Before create or major modify operations:
RegionId with the user.ZoneId, VpcId, and VSwitchId.Baseline decision rule:
standalone_pro is the default for dev/test.streaming, data, mix_coordinator, and query must use at least 4 CU; proxy must use at least 2 CU.Detailed templates and field definitions live in references/instance-lifecycle.md and references/create-params.md.
Use the API's expected parameter mode. Do not improvise.
# get / delete: business params in URL query
aliyun milvus get "/path?RegionId=<region>&instanceId=<id>" --RegionId <region> --force --user-agent AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage
# post / put with request body: business params in --body JSON
aliyun milvus post "/path?RegionId=<region>" --RegionId <region> --body '{...}' --force --user-agent AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage
# post with query-style flags: business params as --Flag value
aliyun milvus post "/path" --RegionId <region> --InstanceId <id> --force --user-agent AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage
Rules:
--RegionId <region>.CreateInstance and UpdateInstance, use --body.--Flag value.eval or source with untrusted input.total blindly; inspect the returned array.aliyun CLI. Instead, instruct the user to delete the instance via the Alibaba Cloud Milvus Console.Require explicit confirmation before:
Use this template:
About to execute:
<API>, Target:<InstanceId>, Impact:<Description>. Continue?
For config change and network troubleshooting flows, read references/operations.md or references/instance-lifecycle.md first.
instanceId, instanceName, status, dbVersion, ha, paymentType, and connection endpoints when relevant.--cli-query or jq to trim noisy payloads when useful.Before writing any pymilvus code, ask for:
default.Do not assume connection parameters. Use Milvus Lite only when the user explicitly wants local embedded mode.
Minimal connection shape:
from pymilvus import MilvusClient
PYMILVUS_GRPC_OPTIONS = {
"grpc.primary_user_agent": "AlibabaCloud-Agent-Skills/alibabacloud-milvus-manage"
}
client = MilvusClient(
uri="<USER_URI>",
token="<USER_TOKEN>",
grpc_options=PYMILVUS_GRPC_OPTIONS,
)
MilvusClient(...) and connections.connect(...) example must pass grpc_options=PYMILVUS_GRPC_OPTIONS.pymilvus SDK connection code without grpc_options=PYMILVUS_GRPC_OPTIONS.For async usage, schema details, and deployment-specific patterns, load the relevant reference doc.
drop_collection, drop_database, or large deletes before executing.AUTOINDEX unless the user has explicit performance requirements.For most SDK tasks:
pymilvus code with real embeddings, real connection placeholders, and grpc_options=PYMILVUS_GRPC_OPTIONS.