Skip to content

Conversation

@ilayaperumalg
Copy link
Member

  • 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: Refactor VectoStore's usage on Document.getEmbedding #1826

Resolves #1781

 - 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: spring-projects#1826

Resolves spring-projects#1781
@markpollack
Copy link
Member

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

@markpollack
Copy link
Member

merged in 0d122bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove embedding from Document

2 participants