• This PR removes the reference of embedding from the Document object.
  • The Document is designed to contain the content and its metadata but not the embedding representation of its content. This provides clear separation of concern.
  • Prior to this change, all the vector stores are updated by not depending on the embedding from Document. Instead, use the embedding values returned by the Embedding Models directly: https://github.com/spring-projects/spring-ai/issues/1826

Resolves #1781

Comment From: markpollack

need to remove embedding in builder , use in tests and mention in javadoc. will do on merge.

Comment From: markpollack

merged in 0d122bb007542adab84f0b48a3aeaa049082bc3e