Skip to content

fix: MostSimilarDocumentsPipeline doesn't have pipeline property#3265

Merged
vblagoje merged 2 commits intodeepset-ai:mainfrom
vblagoje:document_search_pipeline_fix
Sep 23, 2022
Merged

fix: MostSimilarDocumentsPipeline doesn't have pipeline property#3265
vblagoje merged 2 commits intodeepset-ai:mainfrom
vblagoje:document_search_pipeline_fix

Conversation

@vblagoje
Copy link
Member

Related Issues

Proposed Changes:

MostSimilarDocumentsPipeline, unlike all other pipelines, doesn't have the underlying pipeline property/field. Any method from the superclass that relies on pipeline (get_type, save_to_yaml) will fail.

I added pipeline property, added document store to pipeline but I left the run methods as is - I don't think we can use BaseDocumentStore run method. @bogdankostic please confirm.

How did you test it?

Added a unit test for pipeline classification

Notes for the reviewer

Should we add unit tests that exercise other BaseStandardPipeline methods that rely on the pipeline?

Checklist

@vblagoje vblagoje requested a review from a team as a code owner September 22, 2022 09:29
@vblagoje vblagoje requested review from ZanSara and bogdankostic and removed request for a team and ZanSara September 22, 2022 09:29
@vblagoje vblagoje changed the title MostSimilarDocumentsPipeline doesn't have pipeline property fix:MostSimilarDocumentsPipeline doesn't have pipeline property Sep 22, 2022
@vblagoje vblagoje merged commit 9ca3cca into deepset-ai:main Sep 23, 2022
@masci masci changed the title fix:MostSimilarDocumentsPipeline doesn't have pipeline property fix: MostSimilarDocumentsPipeline doesn't have pipeline property Oct 20, 2022
@vblagoje vblagoje deleted the document_search_pipeline_fix branch October 24, 2022 08:21
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.

MostSimilarDocumentsPipeline doesn't have pipeline property

2 participants