[PR #13081] [CLOSED] feat: update sentence transformers to v4.1.0 and ability to use new backends #38723

Closed
opened 2026-04-25 11:36:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/13081
Author: @DrZoidberg09
Created: 4/20/2025
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • e0664ec feat: update sentence transformers to v4.1.0 and ability to use new backends

📊 Changes

4 files changed (+41 additions, -2 deletions)

View changed files

📝 backend/open_webui/env.py (+31 -0)
📝 backend/open_webui/routers/retrieval.py (+8 -0)
📝 backend/requirements.txt (+1 -1)
📝 pyproject.toml (+1 -1)

📄 Description

Changelog Entry

Description

Added

  • Added ENV SENTENCE_TRANSFORMER_BACKEND, SENTENCE_TRANSFORMER_KWARGS, CROSS_ENCODER_BACKEND, CROSS_ENCODER_KWARGS

Changed

  • Updated sentence-transformers to 4.1.0 in dependencies

Additional Information


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/13081 **Author:** [@DrZoidberg09](https://github.com/DrZoidberg09) **Created:** 4/20/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`e0664ec`](https://github.com/open-webui/open-webui/commit/e0664ec52b50799a10b5ba189a08cb3f735a067e) feat: update sentence transformers to v4.1.0 and ability to use new backends ### 📊 Changes **4 files changed** (+41 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/env.py` (+31 -0) 📝 `backend/open_webui/routers/retrieval.py` (+8 -0) 📝 `backend/requirements.txt` (+1 -1) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description # Changelog Entry ### Description - Updated Sentence Transformers to newest version 4.1.0, which added new backends onnx and openvino - Added ENV to specify backend and model kwargs - For onnx or onnx-gpu specific sentence-transformers package needs to be installed - Further reading here: https://www.sbert.net/docs/cross_encoder/usage/efficiency.html#onnx ### Added - Added ENV SENTENCE_TRANSFORMER_BACKEND, SENTENCE_TRANSFORMER_KWARGS, CROSS_ENCODER_BACKEND, CROSS_ENCODER_KWARGS ### Changed - Updated sentence-transformers to 4.1.0 in dependencies --- ### Additional Information - This is my first contribution here. Please advise, if something needs to be done differently - Documentation changes once the PR gets a green light? - Reference: #13080 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 11:36:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#38723