[PR #707] [MERGED] chore: Update Mixedbread to latest version #1502

Closed
opened 2026-02-16 10:23:08 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/707
Author: @DavideDelbianco
Created: 4/13/2025
Status: Merged
Merged: 4/13/2025
Merged by: @crazywoola

Base: mainHead: fix/mixedbread


📝 Commits (1)

  • ee6dfc3 chore: Update Mixedbread to latest version

📊 Changes

9 files changed (+156 additions, -67 deletions)

View changed files

models/mixedbread/.env.example (+4 -0)
models/mixedbread/README.md (+16 -0)
models/mixedbread/_assets/beir-performance.png (+0 -0)
📝 models/mixedbread/manifest.yaml (+9 -13)
models/mixedbread/models/rerank/mxbai-rerank-large-v2.yaml (+4 -0)
📝 models/mixedbread/models/rerank/rerank.py (+52 -20)
📝 models/mixedbread/models/text_embedding/text_embedding.py (+66 -29)
📝 models/mixedbread/provider/mixedbread.yaml (+4 -4)
📝 models/mixedbread/requirements.txt (+1 -1)

📄 Description

Related Issue or Context

Resolves #705

Type of Change

  • [x ] Bug Fix (non-breaking change which fixes an Issue)
  • [ x] New Feature (non-breaking change which adds Functionality)
  • [x ] Code Refactoring

Version Control (if applicable)

  • [x ] Version bumped in Manifest.yaml (top-level Version field, not in Meta section)

Test Evidence (if applicable)

Important

Visual Proof is required for Bug Fixes, New Features, and Breaking Changes:

Screenshots or Video/GIF:

Before with valid key:
image
After with valid key, before fixing model names (now show the error message):
image
After with valid key, with model names corrected (validation passes) and new rerank model added:
image
Updated the code to work with latest dify-plugin-sdk (token count needed to output int[] and not int)
image
image
Added the env.cof file and README.md that are present in other plugins, but were missing in this one
image

Update the provider name, it is "Mixedbread" and not "MixedBread"
Updated the code to use dify-plugin-sdk 0.0.1b76+ to avoid the memory leaks problems

Note

For LLM Models Changes:

  • Bug Fixes:
    • [x ] Show the Fix working with Example Inputs/Outputs
  • New Features:
    • [x ] Demonstrate the Functionality with Example Inputs/Outputs
    • Metrics:
      • [ x] Token Consumption Metrics

Environment Verification

Important

At least one environment must be tested.

Local Deployment Environment

Local Deployment Dify Version: 1.2.0

  • [x ] Changes tested in a Clean Environment that matches Production Configuration

image

SaaS Environment

  • Testing performed on cloud.dify.ai
  • Changes tested in a Clean Environment that matches Production Configuration

🔄 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/langgenius/dify-official-plugins/pull/707 **Author:** [@DavideDelbianco](https://github.com/DavideDelbianco) **Created:** 4/13/2025 **Status:** ✅ Merged **Merged:** 4/13/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix/mixedbread` --- ### 📝 Commits (1) - [`ee6dfc3`](https://github.com/langgenius/dify-official-plugins/commit/ee6dfc37a09f82a7e6acd0bf6d041767689d579e) chore: Update Mixedbread to latest version ### 📊 Changes **9 files changed** (+156 additions, -67 deletions) <details> <summary>View changed files</summary> ➕ `models/mixedbread/.env.example` (+4 -0) ➕ `models/mixedbread/README.md` (+16 -0) ➕ `models/mixedbread/_assets/beir-performance.png` (+0 -0) 📝 `models/mixedbread/manifest.yaml` (+9 -13) ➕ `models/mixedbread/models/rerank/mxbai-rerank-large-v2.yaml` (+4 -0) 📝 `models/mixedbread/models/rerank/rerank.py` (+52 -20) 📝 `models/mixedbread/models/text_embedding/text_embedding.py` (+66 -29) 📝 `models/mixedbread/provider/mixedbread.yaml` (+4 -4) 📝 `models/mixedbread/requirements.txt` (+1 -1) </details> ### 📄 Description ## Related Issue or Context Resolves #705 ## Type of Change - [x ] Bug Fix (non-breaking change which fixes an Issue) - [ x] New Feature (non-breaking change which adds Functionality) - [x ] Code Refactoring ## Version Control (if applicable) - [x ] Version bumped in Manifest.yaml (top-level `Version` field, not in Meta section) ## Test Evidence (if applicable) > [!IMPORTANT] > Visual Proof is required for Bug Fixes, New Features, and Breaking Changes: ### Screenshots or Video/GIF: <!-- Provide your evidence here --> Before with valid key: ![image](https://github.com/user-attachments/assets/40d61f7a-4868-442d-8bd1-03f1fb02a379) After with valid key, before fixing model names (now show the error message): ![image](https://github.com/user-attachments/assets/e7c48f6b-a67f-4706-9c7d-a92656d1e2be) After with valid key, with model names corrected (validation passes) and new rerank model added: ![image](https://github.com/user-attachments/assets/e008994b-903d-45bf-82dd-fc910b873843) Updated the code to work with latest `dify-plugin-sdk` (token count needed to output `int[]` and not `int`) ![image](https://github.com/user-attachments/assets/88c2afe2-f983-4e55-9527-6e8e5261ea24) ![image](https://github.com/user-attachments/assets/5f171e90-dee4-4daa-b79b-45602f35ad74) Added the env.cof file and README.md that are present in other plugins, but were missing in this one ![image](https://github.com/user-attachments/assets/df4e5c00-79a8-472e-aefb-32c82b2a8c6f) Update the provider name, it is "Mixedbread" and not "MixedBread" Updated the code to use `dify-plugin-sdk` 0.0.1b76+ to avoid the memory leaks problems > [!NOTE] > For LLM Models Changes: > - **Bug Fixes**: > - [x ] Show the Fix working with Example Inputs/Outputs > - **New Features**: > - [x ] Demonstrate the Functionality with Example Inputs/Outputs > - **Metrics**: > - [ x] Token Consumption Metrics ### Environment Verification > [!IMPORTANT] > At least one environment must be tested. #### Local Deployment Environment Local Deployment Dify Version: 1.2.0 - [x ] Changes tested in a Clean Environment that matches Production Configuration ![image](https://github.com/user-attachments/assets/5bc3bb33-b794-4454-9cc8-2bc0a037a029) #### SaaS Environment - [ ] Testing performed on cloud.dify.ai - [ ] Changes tested in a Clean Environment that matches Production Configuration <!-- - Python virtual env matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:23:08 -05:00
yindo closed this issue 2026-02-16 10:23:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1502