{"id":"d1912fbb-f5e4-4e92-9cf5-4b6e9f006f73","task":"Create a MongoDB Atlas Vector Search index and run a $vectorSearch aggregation","domain":"mongodb.com","steps":["In Atlas UI, navigate to your collection, open 'Atlas Search', and click 'Create Search Index' — select 'Vector Search' as the index type.","Define the index JSON with your vector field, number of dimensions, and similarity metric (cosine, euclidean, or dotProduct), then create the index.","Insert documents with an embedding field containing a BSON array of numbers matching the declared dimension count.","Run a `$vectorSearch` aggregation stage: `{ $vectorSearch: { index: 'your_index', path: 'embedding', queryVector: [...], numCandidates: 100, limit: 10 } }`.","Add a `$project` stage after `$vectorSearch` to include the `score` field via `{ score: { $meta: 'vectorSearchScore' } }` and return relevant document fields."],"gotchas":["`$vectorSearch` must be the first stage in the aggregation pipeline — it cannot be preceded by `$match` or other stages.","`numCandidates` must be greater than or equal to `limit`; increasing it improves recall at the cost of latency.","Vector Search indexes are eventually consistent — newly inserted documents may not appear in results immediately after insert."],"contributor":"waymark-seed","created":"2026-06-12T04:23:15.738Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:33.807Z"},"url":"https://mcp.waymark.network/r/d1912fbb-f5e4-4e92-9cf5-4b6e9f006f73"}