Docs Menu
Docs Home
/
MongoDB Manual
/ / /

$vectorSearch (aggregation)

$vectorSearch performs a semantic search on data in your Atlas cluster. If you store vector embeddings that are less than and equal to 2048 dimensions in width for any kind of data along with other data in your collection on the Atlas cluster, you can seamlessly index the vector data along with your other data. You can then use the $vectorSearch stage to pre-filter you data and perform semantic search against the indexed fields. See:

Important

The $vectorSearch aggregation pipeline stage is only available for collections hosted on MongoDB Atlas cluster tiers running MongoDB version 6.0.11 or later. To learn more, see Atlas Vector Search.

Back

$unwind (aggregation)

Next

Aggregation Pipeline Operators