claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialdatabase

📑index

プラグイン
zilliz

説明

次のような場合に使用: ユーザーがMilvusコレクション上のインデックスを作成、一覧表示、詳細確認、または削除したい場合。

原文を表示

Use when the user wants to create, list, describe, or drop indexes on Milvus collections.

ユースケース

  • Milvusコレクション上のインデックスを作成するとき
  • インデックスの一覧を表示したいとき
  • インデックスの詳細を確認したいとき
  • インデックスを削除したいとき

本文(日本語訳)

前提条件

  1. CLIがインストールされ、ログイン済みで、クラスターコンテキストが設定されていること(setup スキルを参照)。
  2. 対象のコレクションが存在すること(collection スキルを参照)。

コマンドリファレンス

すべてのインデックスコマンドは、オプションとして --database <db-name> フラグを受け付けます。 省略した場合は、現在のコンテキストに設定されているデータベースが使用されます。

インデックスの作成

zilliz index create --collection <collection-name>
# オプション: --database <database-name>
# または生のJSONで指定: --body '{"indexParams": [{"fieldName": "vector", "indexType": "AUTOINDEX", "metricType": "COSINE"}]}'

インデックスの一覧表示

zilliz index list --collection <collection-name>
# オプション: --database <database-name>

インデックスの詳細確認

zilliz index describe --collection <collection-name> --index-name <index-name>
# オプション: --database <database-name>

インデックスの削除

zilliz index drop --collection <collection-name> --index-name <index-name-to-drop>
# オプション: --database <database-name>

インデックスタイプ

主なインデックスタイプ:

  • AUTOINDEX -- 推奨。最適なインデックスを自動的に選択する
  • IVF_FLATIVF_SQ8HNSW -- 上級ユーザー向けの手動選択オプション

主なメトリックタイプ:

  • COSINE -- コサイン類似度(デフォルト)
  • L2 -- ユークリッド距離
  • IP -- 内積

ガイダンス

  • Zilliz Cloud では、ほとんどのユースケースにおいて AUTOINDEX を推奨します。
  • コレクションを検索用にロードする前に、インデックスの作成が必要です。
  • インデックスを作成する前に、コレクションのスキーマを確認してベクトルフィールドを特定してください。
  • インデックスの作成後は、コレクションをロードするようユーザーに案内してください。
原文(English)を表示

Prerequisites

  1. CLI installed, logged in, and cluster context set (see setup skill).
  2. Target collection must exist (see collection skill).

Commands Reference

All index commands accept an optional --database <db-name> flag. If omitted, the database from the current context is used.

Create an Index

zilliz index create --collection <collection-name>
# Optional: --database <database-name>
# Or use raw JSON: --body '{"indexParams": [{"fieldName": "vector", "indexType": "AUTOINDEX", "metricType": "COSINE"}]}'

List Indexes

zilliz index list --collection <collection-name>
# Optional: --database <database-name>

Describe an Index

zilliz index describe --collection <collection-name> --index-name <index-name>
# Optional: --database <database-name>

Drop an Index

zilliz index drop --collection <collection-name> --index-name <index-name-to-drop>
# Optional: --database <database-name>

Index Types

Common index types:

  • AUTOINDEX -- recommended, automatically selects the best index
  • IVF_FLAT, IVF_SQ8, HNSW -- manual selection for advanced users

Common metric types:

  • COSINE -- cosine similarity (default)
  • L2 -- Euclidean distance
  • IP -- inner product

Guidance

  • On Zilliz Cloud, AUTOINDEX is recommended for most use cases.
  • An index is required before loading a collection for search.
  • Before creating an index, check the collection schema to identify vector fields.
  • After creating an index, remind the user to load the collection.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。