Skip to content

Commit

Permalink
Revert unnecessary "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe committed Mar 1, 2024
1 parent 55ca0d5 commit 7b5ef29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _prepare_texts_to_embed(self, documents: List[Document]) -> List[str]:

text_to_embed = (
self._backend.parameters.prefix
+ self.embedding_separator.join(meta_values_to_embed + (doc.content or [""]))
+ self.embedding_separator.join([*meta_values_to_embed, doc.content or ""])
+ self._backend.parameters.suffix
)

Expand Down

0 comments on commit 7b5ef29

Please sign in to comment.