Skip to content

use sentence-transformers>=4.1.0#401

Merged
anakin87 merged 1 commit intomainfrom
update-sentence-transformers
May 21, 2025
Merged

use sentence-transformers>=4.1.0#401
anakin87 merged 1 commit intomainfrom
update-sentence-transformers

Conversation

@anakin87
Copy link
Copy Markdown
Member

@anakin87 anakin87 commented May 21, 2025

Our SentenceTransformersSimilarityRanker (deepset-ai/haystack#9415) works with sentence-transformers>=4.1.0.

We cannot enforce this constraint in Haystack because Sentence Transformers is not a core dependency, but we should consistently show users the expected version to install.

For this reason, I'm updating the installation commands in tutorials.

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@anakin87 anakin87 changed the title use sentence-transformers>=4.1.0 use sentence-transformers>=4.1.0 May 21, 2025
@anakin87 anakin87 marked this pull request as ready for review May 21, 2025 08:45
@anakin87 anakin87 requested a review from a team as a code owner May 21, 2025 08:45
@anakin87 anakin87 requested a review from sjrl May 21, 2025 08:46
Copy link
Copy Markdown
Contributor

@sjrl sjrl 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!

@anakin87 anakin87 merged commit 3b85278 into main May 21, 2025
14 checks passed
@anakin87 anakin87 deleted the update-sentence-transformers branch May 21, 2025 09:01
@tomaarsen
Copy link
Copy Markdown

As some extra context, the v4.0 update did not include any breaking changes - only soft deprecations for specific CrossEncoder training related classes, i.e. warnings when used (migration guide). This means that users who are updating from e.g. v3.x to v4.x should not be affected by any incompatibilities or issues :)

  • Tom Aarsen

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.

3 participants