对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

$vectorSearch(聚合阶段)

$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 $vectorSearch stage to pre-filter your data and perform semantic search against the indexed fields.

矢量数据的宽度必须小于或等于 8192 维度。

从MongoDB8.0 开始,您可以在 阶段中使用$vectorSearch $unionWith阶段。

您不能在$vectorSearch $facet阶段或$lookup 阶段中使用 阶段。

给本页内容打分