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

chore: migrate to canals==0.7.0 #5647

Merged
merged 22 commits into from
Aug 29, 2023
Merged

chore: migrate to canals==0.7.0 #5647

merged 22 commits into from
Aug 29, 2023

Conversation

ZanSara
Copy link
Contributor

@ZanSara ZanSara commented Aug 28, 2023

Related Issues

Proposed Changes:

  • canals==0.7.0 introduces a new requirement for component: to_dict and from_dict
  • This PR upgrades all components to match this new requirement.

How did you test it?

Local tests run

Notes for the reviewer

n/a

Checklist

@ZanSara ZanSara requested a review from a team as a code owner August 28, 2023 16:28
@ZanSara ZanSara requested review from silvanocerza and removed request for a team August 28, 2023 16:28
@ZanSara ZanSara changed the title choare: migrate to canals==0.7.0 chore: migrate to canals==0.7.0 Aug 29, 2023
* serialization methods for FileExtensionClassifier

* Update test_file_classifier.py
@coveralls
Copy link
Collaborator

coveralls commented Aug 29, 2023

Pull Request Test Coverage Report for Build 6012394791

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 9 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.05%) to 48.336%

Files with Coverage Reduction New Missed Lines %
preview/components/classifiers/file_classifier.py 1 94.44%
preview/components/embedders/sentence_transformers_document_embedder.py 1 97.44%
preview/components/embedders/sentence_transformers_text_embedder.py 1 96.55%
preview/components/writers/document_writer.py 6 0.0%
Totals Coverage Status
Change from base Build 6012207560: 0.05%
Covered Lines: 11506
Relevant Lines: 23804

💛 - Coveralls

ZanSara and others added 8 commits August 29, 2023 15:25
* serialization methods for RemoteWhisperTranscriber

* remove patches
* simplify serialization for MemoryDocumentStore

* remove redundant tests

* pylint
* serialization method for MemoryRetriever

* more tests

* remove hash from default_document_store_to_dict

* remove diff in factory.py
* serialization methods for DocumentWriter

* more tests

* use factory
@ZanSara ZanSara merged commit b1daa7c into main Aug 29, 2023
58 checks passed
@ZanSara ZanSara deleted the default-to-from-dict branch August 29, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: port preview components to Canals 0.7.0
3 participants