次のような場合に使用: ユーザーがMilvusコレクション上のインデックス(データを高速に検索するための索引)の作成、一覧表示、説明、または削除を行いたいとき
Use when the user wants to create, list, describe, or drop indexes on Milvus collections.
すべてのインデックスコマンドは、オプションとして --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_FLAT、IVF_SQ8、HNSW -- 上級ユーザー向けの手動選択オプション主なメトリックタイプ:
COSINE -- コサイン類似度(デフォルト)L2 -- ユークリッド距離IP -- 内積AUTOINDEX を推奨します。All index commands accept an optional --database <db-name> flag. If omitted, the database from the current context is used.
zilliz index create --collection <collection-name>
# Optional: --database <database-name>
# Or use raw JSON: --body '{"indexParams": [{"fieldName": "vector", "indexType": "AUTOINDEX", "metricType": "COSINE"}]}'
zilliz index list --collection <collection-name>
# Optional: --database <database-name>
zilliz index describe --collection <collection-name> --index-name <index-name>
# Optional: --database <database-name>
zilliz index drop --collection <collection-name> --index-name <index-name-to-drop>
# Optional: --database <database-name>
Common index types:
AUTOINDEX -- recommended, automatically selects the best indexIVF_FLAT, IVF_SQ8, HNSW -- manual selection for advanced usersCommon metric types:
COSINE -- cosine similarity (default)L2 -- Euclidean distanceIP -- inner productAUTOINDEX is recommended for most use cases.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。