← 返回 Skills 市场
cinience

Alicloud Ai Search Milvus

作者 cinience · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
1121
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install alicloud-ai-search-milvus
功能描述
Use AliCloud Milvus (serverless) with PyMilvus to create collections, insert vectors, and run filtered similarity search. Optimized for Claude Code/Codex vec...
使用说明 (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/alicloud-ai-search-milvus/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/alicloud-ai-search-milvus
for f in skills/ai/search/alicloud-ai-search-milvus/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-ai-search-milvus/validate.txt

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

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-ai-search-milvus/.
  • 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 be what it says (connects to Milvus and runs create/insert/search), but the package metadata failed to declare the sensitive environment variables the code actually requires. Before installing or running it: 1) do not supply admin or wide-scope credentials — use a low-privilege/read-only token for initial testing; 2) verify the MILVUS_URI and MILVUS_TOKEN are intended for this environment (avoid reuse of general account credentials); 3) review scripts/quickstart.py locally (it only uses pymilvus and prints/saves outputs) and run it in an isolated/test environment or container; 4) confirm where output files will be stored and ensure they are not auto-uploaded anywhere; 5) ask the publisher for source/homepage and request that the skill metadata be updated to explicitly declare required env vars and credential scopes. If you cannot verify the source or cannot limit token permissions, do not provide credentials.
功能分析
Type: OpenClaw Skill Name: alicloud-ai-search-milvus Version: 1.0.3 The skill bundle provides a standard integration for Alibaba Cloud Milvus using the official pymilvus library. The included Python script (scripts/quickstart.py) and instructions (SKILL.md) perform legitimate vector database operations such as collection creation, data insertion, and similarity searching. No indicators of data exfiltration, malicious execution, or harmful prompt injection were identified.
能力评估
Purpose & Capability
The skill's described purpose (use AliCloud Milvus via PyMilvus to create collections, insert vectors, and search) aligns with the included code and SKILL.md examples. However, the registry metadata does not declare any required environment variables/credentials even though the skill clearly needs MILVUS_URI and MILVUS_TOKEN to function.
Instruction Scope
SKILL.md and scripts limit actions to connecting to a Milvus instance, creating collections, inserting sample vectors, and performing searches. The workflow explicitly suggests confirming intent and running a read-only query first. It does include mutating steps (create/insert) which are expected for this purpose but should be noted before granting access.
Install Mechanism
No install spec — instruction-only with a small Python script. This is low-risk from an installation/download perspective; dependencies (pymilvus) are installed via pip per instructions, which is typical.
Credentials
Although requiring a Milvus URI and token is reasonable for this skill, the registry metadata does not declare these required environment variables or a primary credential. The SKILL.md and script require MILVUS_URI and MILVUS_TOKEN (sensitive credentials). The omission in metadata and the use of a raw token (username:password) is a configuration/information mismatch that increases risk if users are not aware before granting credentials.
Persistence & Privilege
The skill does not request permanent presence (always:false), does not modify other skills, and does not declare elevated platform privileges. It writes output artifacts locally per SKILL.md, which is normal for this type of tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alicloud-ai-search-milvus
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alicloud-ai-search-milvus 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
batch publish from alicloud-skills on 2026-03-11
v1.0.2
batch publish from alicloud-skills on 2026-02-13
v1.0.1
Initial ClawHub publish for Alibaba Cloud skills with agents metadata.
v1.0.0
Initial ClawHub publish for Alibaba Cloud skills with agents metadata.
元数据
Slug alicloud-ai-search-milvus
版本 1.0.3
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 4
常见问题

Alicloud Ai Search Milvus 是什么?

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

如何安装 Alicloud Ai Search Milvus?

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

Alicloud Ai Search Milvus 是免费的吗?

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

Alicloud Ai Search Milvus 支持哪些平台?

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

谁开发了 Alicloud Ai Search Milvus?

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

💬 留言讨论