As a result of deprecating embedding from the Document object, refer: https://github.com/spring-projects/spring-ai/issues/1781, some of the vector store operations, specifically the doSimilaritySearch method relies on Document#getEmbedding.

This issue addresses the refactoring of this dependency.