-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improve Document __repr__
#3385
Conversation
Hey @anakin87 thanks for the PR but I found out that the bug was already addressed in https://github.com/deepset-ai/haystack/pull/2891/files#diff-33a10a124046ca252619f7aee1dc2d1656668fa7cb5c23fef9c4ba0824d538e8R232 so I'm closing this one along with the related issue 🙏 |
Hey @masci! Anyway, while working on this PR, I discovered another bug that is still present in the main branch and would have been fixed by this PR.
Bug: the embedding is still included in Line 234 in 16723bf
|
@anakin87 I completely missed that. Let's rebase on |
@masci done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related Issues
Proposed Changes:
As reported in #3382, there was a minor bug in
__repr__
method of theDocument
class.Since "The truth value of an array with more than one element is ambiguous.", I check instead that the
embedding
is not None
.How did you test it?
Manual tests
Notes for the reviewer
Other small fixes
Checklist