Skip to content

fix: change passage prompt to document #2912

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

Merged
merged 4 commits into from
Jul 20, 2025
Merged

Conversation

Samoed
Copy link
Member

@Samoed Samoed commented Jul 17, 2025

Change passage prompt name to document in all places to make compatible with SentenceTransformers v5.

Closes #2896

@Samoed Samoed requested a review from isaac-chung July 17, 2025 21:27
@isaac-chung
Copy link
Collaborator

Can we please get the tests passing?

@isaac-chung
Copy link
Collaborator

There's no change to pyproject.toml yet. Would allowing ST v5 pass all the tests?

@Samoed
Copy link
Member Author

Samoed commented Jul 20, 2025

I don't think we need to change anything in pyproject, because tests is run with sentence transformers v5 and everything is working

Copy link
Collaborator

@isaac-chung isaac-chung left a comment

Choose a reason for hiding this comment

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

You're right! My bad. Good to go.

@isaac-chung isaac-chung merged commit a298fa9 into main Jul 20, 2025
10 checks passed
@isaac-chung isaac-chung deleted the change_document_to_passage branch July 20, 2025 17:19
@KennethEnevoldsen
Copy link
Contributor

isn't this a breaking change for anyone implementing their own models?

@Samoed
Copy link
Member Author

Samoed commented Jul 22, 2025

I think probably yes

@KennethEnevoldsen
Copy link
Contributor

Hmm, probably shouldn't have been merged as a fix then (feat at least if not included in v2)

Well don't think we should change it now, but worth keeping in mind in the future

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.

Prompts handling with Sentence Transformers
3 participants