You 🧑
It looks like you had to search a bunch of sources to find information. Is there anything that could be improved in the mongo docs to make this easier?
Assistant 🤖
Great question! Yes, I had to piece this together from multiple sources (product update page, blog post, API spec, a third-party site). Here's what I think could be improved:
The feature is in Public Preview (since April 30), but there's no page in the main docs like atlas-vector-search/nested-embeddings/. The product update and blog post are great for announcements, but they're not where I'd naturally look for a reference example. I'd expect to find it under the Vector Search section of the Atlas docs next to "Run Vector Search Queries" or "How to Index Fields for Vector Search."
The product update says "Add a nestedRoot field to a vector search index definition" — but it doesn't show the actual JSON. The blog post is full of great conceptual info but also lacks a concrete code block showing the full index definition. The API reference mentions nestedRoot as a string property but again, no example showing how fields, nestedRoot, and numDimensions/similarity fit together.
The blog post mentions max and avg scoring but doesn't show the actual aggregation pipeline stage syntax. I had to infer the query shape from context. A code block showing:
$vectorSearch: {
index: "nested_idx",
path: "embedding",
queryVector: [...],
numCandidates: 100,
limit: 10,
scoreMethod: "max"
}
would have saved me 5+ searches.
The page at /docs/atlas/atlas-vector-search/vector-search-type/ (which should document how to define vector search indexes) doesn't mention nestedRoot at all. That's where I'd naturally look first for index definition syntax.
|
Gap |
Fix |
|
Missing doc page |
Add a "Nested Embeddings" page under the Vector Search section |
|
No example JSON |
Show a full index definition with nestedRoot + fields + type: "vector" |
|
No query example |
Show $vectorSearch with scoreMethod in the aggregation pipeline |
|
Scattered info |
Cross-link from the blog post, product update, and index type docs |
Basically, the blog post does a great job explaining why you'd use it, but the docs need a clear how-to page with working examples. The feature is useful enough that a developer shouldn't need to triangulate between 4 sources to figure out the index definition syntax!