Hi. Thanks for the suggestions. I was able to figure out the issues.
The reason I wanted to find similarities between the embeddings of the Question and Documents is for fast and easy search. During deployment, the different document embeddings can be precomputed and stored. When a question is given, we can easily find its embedding, and find the nearest neighbour document embedding of the question embedding, thereby saving a lot of time.