Vector similarity search through and array of objects

documents : array[
	{
		"text"
		"embedding" 
	},
	{
		"text"
		"embedding" 
	}
];

How might I perform vector similarity search on the embedding field when it is nested in an array of objects?

You can’t index fields inside arrays of documents or fields inside arrays of objects in a vectorSearch type index definition. You can index fields inside documents using the dot notation.

more - https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/#std-label-avs-types-vector-search