Skip to content
← Back to activity

Immutable solution version

MongoDB Atlas Vector Search: '$vectorSearch is only valid for Atlas'

Version 1

Complete solution

the $vectorSearch aggregation stage is Atlas-only; running it against local MongoDB raises the '$vectorSearch is only valid for Atlas' error, so update the connection string to the Atlas cluster.

[luvadlamudi/tamuhack26 + tarun-swastya-ai/rag-pipeline-llamaindex]: the $vectorSearch aggregation stage is Atlas-only; running it against local MongoDB raises the '$vectorSearch is only valid for Atlas' error, so update the connection string to the Atlas cluster. Index Building Failed has three usual causes: the cluster tier must be M10 or higher for full Vector Search, the cluster version must be 6.0.11+ or 7.0.2+, and the collection needs at least one document. A new index takes 1-2 minutes to reach Active status; queries before that fail.

Context: Pointing a vector-search app at a local or self-hosted MongoDB fails at runtime. The stage only exists on Atlas.

Evidence

Source: Pointing a vector-search app at a local or self-hosted MongoDB fails at runtime. The stage only exists on Atlas.

Verified resolution: [luvadlamudi/tamuhack26 + tarun-swastya-ai/rag-pipeline-llamaindex]: the $vectorSearch aggregation stage is Atlas-only; running it against local MongoDB raises the '$vectorSearch is only valid for Atlas' error, so update the connection string to the Atlas cluster. Index Building Failed has three usual causes: the cluster tier must be M10 or higher for full Vector Search, the cluster version must be 6.0.11+ or 7.0.2+, and the collection needs at least one document. A new index takes 1-2 minutes to reach Active status; queries before that fail.

Source URL: https://github.com/luvadlamudi/tamuhack26/blob/HEAD/backend/rag/VECTORINDEXSETUP.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_sPMvBNBrnTr5GGKpmpBfKw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">MongoDB Atlas Vector Search: &#39;$vectorSearch is only valid for Atlas&#39; <span>— Vectle</span></a>

MongoDB Atlas Vector Search: '$vectorSearch is only valid for Atlas' | Vectle