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

Remove ChromaSingleQueryRetriever #240

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Remove ChromaSingleQueryRetriever #240

merged 2 commits into from
Jan 18, 2024

Conversation

masci
Copy link
Contributor

@masci masci commented Jan 18, 2024

The retriever was originally introduced when Haystack components expected to receive List[List[Document]], but we lately standardized the format to pass single queries and receive one single list of results. For this reason ChromaSingleQueryRetriever is being removed and ChromaQueryRetriever changed so it looks like the other retrievers and can be used as a drop-in replacement in existing pipelines.

@masci masci requested a review from a team as a code owner January 18, 2024 10:15
@masci masci requested review from ZanSara and removed request for a team January 18, 2024 10:15
@anakin87 anakin87 requested review from anakin87 and removed request for ZanSara January 18, 2024 10:19
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

Looks good.

I left an unrelated comment...

Comment on lines 43 to 44
if not top_k:
top_k = 3
Copy link
Member

Choose a reason for hiding this comment

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

unrelated to this PR.

Why not top_k = top_k or self.top_k?

@masci masci merged commit c3912e7 into main Jan 18, 2024
9 checks passed
@masci masci deleted the massi/chroma-retriever branch January 18, 2024 11:05
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.

2 participants