Vector Search in advanced data

I have a data like:

{
_id: Unique Id,
files:[
    {
       fileId: unique id,
       memoryVectors: [
         {
             embeddings: []//vector data
         }
      ]
    }
  ]
}

I want to implement a vector search on embeddings so only the matched files will got filtered out from files array.

I’ve gone through the documentation and it only work for the records in the mongodb but not for the particular data array.

If anyone can help me in this, It would be highly appreciated.

Hey @avneet2005_N_A welcome to the community!

Can you explain a bit more? I’m not sure I understand this:

I want to implement a vector search on embeddings so only the matched files will got filtered out from files array.

I do see that your “embeddings” array is an array within the “memoryVectors” array, I don’t believe that is supported, I don’t think your vector field can be within an array.