How to create embeddings and retrieval queries for MongoDB documents with a nested structure using LangChain?

I have find alternative way to solve this problem.
Kindly refer this langchain QA link