← 返回 Skills 市场
cinience

Aliyun Milvus Search

作者 cinience · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
90
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aliyun-milvus-search
功能描述
Use when working with AliCloud Milvus (serverless) with PyMilvus to create collections, insert vectors, and run filtered similarity search. Optimized for Cla...
使用说明 (SKILL.md)

Category: provider

AliCloud Milvus (Serverless) via PyMilvus

This skill uses standard PyMilvus APIs to connect to AliCloud Milvus and run vector search.

Prerequisites

  • Install SDK (recommended in a venv to avoid PEP 668 limits):
python3 -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pymilvus
  • Provide connection via environment variables:
    • MILVUS_URI (e.g. http://\x3Chost>:19530)
    • MILVUS_TOKEN (\x3Cusername>:\x3Cpassword>)
    • MILVUS_DB (default: default)

Quickstart (Python)

import os
from pymilvus import MilvusClient

client = MilvusClient(
    uri=os.getenv("MILVUS_URI"),
    token=os.getenv("MILVUS_TOKEN"),
    db_name=os.getenv("MILVUS_DB", "default"),
)

# 1) Create a collection
client.create_collection(
    collection_name="docs",
    dimension=768,
)

# 2) Insert data
items = [
    {"id": 1, "vector": [0.01] * 768, "source": "kb", "chunk": 0},
    {"id": 2, "vector": [0.02] * 768, "source": "kb", "chunk": 1},
]
client.insert(collection_name="docs", data=items)

# 3) Search
query_vectors = [[0.01] * 768]
res = client.search(
    collection_name="docs",
    data=query_vectors,
    limit=5,
    filter='source == "kb" and chunk >= 0',
    output_fields=["source", "chunk"],
)
print(res)

Script quickstart

python skills/ai/search/aliyun-milvus-search/scripts/quickstart.py

Environment variables:

  • MILVUS_URI
  • MILVUS_TOKEN
  • MILVUS_DB (optional)
  • MILVUS_COLLECTION (optional)
  • MILVUS_DIMENSION (optional)

Optional args: --collection, --dimension, --limit, --filter.

Notes for Claude Code/Codex

  • Insert is async; wait a few seconds before searching newly inserted data.
  • Keep vector dimension aligned with your embedding model.
  • Use filters to enforce tenant scoping or dataset partitions.

Error handling

  • Auth errors: check MILVUS_TOKEN and instance permissions.
  • Dimension mismatch: ensure all vectors match collection dimension.
  • Network errors: verify VPC/public access settings on the instance.

Validation

mkdir -p output/aliyun-milvus-search
for f in skills/ai/search/aliyun-milvus-search/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-milvus-search/validate.txt

Pass criteria: command exits 0 and output/aliyun-milvus-search/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/aliyun-milvus-search/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

Workflow

  1. Confirm user intent, region, identifiers, and whether the operation is read-only or mutating.
  2. Run one minimal read-only query first to verify connectivity and permissions.
  3. Execute the target operation with explicit parameters and bounded scope.
  4. Verify results and save output/evidence files.

References

  • PyMilvus MilvusClient examples for AliCloud Milvus

  • Source list: references/sources.md

安全使用建议
This skill appears to do what it claims (connect and operate on AliCloud Milvus via PyMilvus), but pay attention before supplying credentials. The registry metadata does not list the environment variables the script actually requires (MILVUS_URI and MILVUS_TOKEN), so: 1) do not run this with long-lived or production credentials — create scoped or temporary credentials for testing; 2) run first in an isolated environment (local VM or test account) and in a virtualenv as recommended; 3) verify network access (VPC or public endpoint) and that the token has least privilege required for the operations you want; 4) check the pymilvus version and audit the quickstart.py source if you need stricter assurance; 5) consider whether you want the agent to be allowed to invoke this autonomously while having access to environment variables — if not, avoid giving the agent persistent environment access or disable autonomous invocation for this skill. Finally, ask the publisher (or registry) to correct the manifest to explicitly declare required env vars so you can make an informed decision.
功能分析
Type: OpenClaw Skill Name: aliyun-milvus-search Version: 1.0.0 The skill bundle provides standard functionality for interacting with Alibaba Cloud Milvus (serverless) using the PyMilvus SDK. The code in `scripts/quickstart.py` and the instructions in `SKILL.md` follow expected patterns for vector database operations, using environment variables for authentication and providing clear workflows for collection management and search without any signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The code and SKILL.md match the stated purpose: they use PyMilvus to create collections, insert vectors, and run searches against an AliCloud Milvus endpoint. The requested artifacts (MILVUS_URI, MILVUS_TOKEN, MILVUS_DB, optional collection/dimension env vars) are appropriate for that functionality. However, the registry metadata lists no required environment variables even though the runtime instructions and script require credentials — a transparency mismatch.
Instruction Scope
SKILL.md and scripts stay within the declared scope: they instruct installing pymilvus, reading MILVUS_* env vars, performing a minimal read call, then running create/insert/search operations and saving local output under output/aliyun-milvus-search. There are no instructions to read unrelated system files, phone home to unknown endpoints, or exfiltrate data to third-party services.
Install Mechanism
This is an instruction-only skill with a small helper script. It recommends installing pymilvus via pip (in a virtualenv) — a standard, low-risk approach. There is no bundled download from arbitrary URLs or other installation of external binaries.
Credentials
The runtime requires MILVUS_URI and MILVUS_TOKEN (credentials) and optionally MILVUS_DB, MILVUS_COLLECTION, MILVUS_DIMENSION. Those variables are proportional to the stated purpose. The concern is that the skill registry declares no required environment variables or primary credential — meaning the manifest underreports the credential requirements. Supplying MILVUS_TOKEN grants access to your Milvus instance; ensure you do not provide production/global credentials and prefer scoped or temporary credentials.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It writes outputs locally under an output/ directory which is normal. Note: the agent is allowed autonomous invocation by default (disable-model-invocation is false). Combined with credential access this increases blast radius, but autonomous invocation alone is platform default and not a sole reason for rejection.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aliyun-milvus-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aliyun-milvus-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of aliyun-milvus-search skill for AliCloud Milvus (serverless) vector search. - Connects to AliCloud Milvus using PyMilvus and environment variables for configuration. - Supports creating collections, inserting vectors, and running filtered similarity search. - Includes Python and script quickstart examples. - Provides detailed setup, validation steps, and workflow guidance. - Optimized for use with Claude Code/Codex vector retrieval workflows.
元数据
Slug aliyun-milvus-search
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Aliyun Milvus Search 是什么?

Use when working with AliCloud Milvus (serverless) with PyMilvus to create collections, insert vectors, and run filtered similarity search. Optimized for Cla... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 Aliyun Milvus Search?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aliyun-milvus-search」即可一键安装,无需额外配置。

Aliyun Milvus Search 是免费的吗?

是的,Aliyun Milvus Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Aliyun Milvus Search 支持哪些平台?

Aliyun Milvus Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Aliyun Milvus Search?

由 cinience(@cinience)开发并维护,当前版本 v1.0.0。

💬 留言讨论