定義
$vectorSearch$vectorSearchは、Atlas クラスター内のデータに対してセマンティック検索を実行します。If you store vector embeddings on your Atlas cluster, you can seamlessly index the vector data along with your other collection data. You can use the
$vectorSearchstage to pre-filter your data and perform semantic search against the indexed fields.ベクトルデータは、幅が 8192 次元以下である必要があります。
互換性
$vectorSearch集計パイプラインステージは次の環境で利用できます。
MongoDB Atlas clusters running version 6.0.11 or later
MongoDB Enterprise 配置を実行中バージョン 8.2 以降の Kubernetes Operator
MongoDB Community 配置 バージョン 8.2 以降を実行中
To learn more, see MongoDB Vector Search.
動作
MongoDB8.0 以降では、$vectorSearch ステージで$unionWith ステージを使用できます。
制限
詳細
To learn more about creating MongoDB Vector Search indexes, see Index Vector Embeddings.
To learn more about
$vectorSearchpipeline stage syntax and usage, see Vector Search Queries.