Skip to content
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

feat: support single metadata dictionary in MarkdownToDocument #6629

Merged
merged 9 commits into from
Jan 9, 2024

Conversation

ZanSara
Copy link
Contributor

@ZanSara ZanSara commented Dec 22, 2023

Related Issues

Proposed Changes:

Adds support for single metadata dictionary input in MarkdownToDocument. In this way, additional metadata can be added to all files processed by this component even when the length of the list of sources is unknown.

How did you test it?

Added tests and run locally.

Notes for the reviewer

See the linked issue and this discussion for context.

Checklist

@github-actions github-actions bot added topic:tests 2.x Related to Haystack v2.0 type:documentation Improvements on the docs labels Dec 22, 2023
@ZanSara ZanSara marked this pull request as ready for review December 22, 2023 13:40
@ZanSara ZanSara requested review from a team as code owners December 22, 2023 13:40
@ZanSara ZanSara requested review from dfokina and julian-risch and removed request for a team December 22, 2023 13:40
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the other PR, I suggest that we extend the test cases. And the type annotation in the run method needs to be updated.

@coveralls
Copy link
Collaborator

coveralls commented Jan 8, 2024

Pull Request Test Coverage Report for Build 7459522158

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 87.441%

Totals Coverage Status
Change from base Build 7446805988: 0.09%
Covered Lines: 4052
Relevant Lines: 4634

💛 - Coveralls

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@ZanSara ZanSara merged commit abd16ab into main Jan 9, 2024
22 checks passed
@ZanSara ZanSara deleted the single-meta-in-markdown2document branch January 9, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants