-
-
Notifications
You must be signed in to change notification settings - Fork 585
Add MMP Embedding method #1223
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
base: master
Are you sure you want to change the base?
Add MMP Embedding method #1223
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||
User description
Add mean/max pooling embedding methods to improve vector query accuracy in the show-text scenario.
PR Type
Enhancement
Description
Introduces Mean-Max Pooling (MMP) embedding strategy for improved vector query accuracy
Implements multi-provider support (OpenAI, Azure OpenAI, DeepSeek) via ProviderHelper
Adds MMPEmbeddingProvider with token-level embedding and pooling capabilities
Registers new plugin in solution with dependency injection configuration
Diagram Walkthrough
File Walkthrough
MMPEmbeddingPlugin.cs
Plugin registration and dependency injection setupsrc/Plugins/BotSharp.Plugin.MMPEmbedding/MMPEmbeddingPlugin.cs
ProviderHelper.cs
Multi-provider client factory for embedding servicessrc/Plugins/BotSharp.Plugin.MMPEmbedding/ProviderHelper.cs
provider type
credentials
MMPEmbeddingProvider.cs
Core MMP embedding provider with pooling logicsrc/Plugins/BotSharp.Plugin.MMPEmbedding/Providers/MMPEmbeddingProvider.cs
Using.cs
Global namespace imports for pluginsrc/Plugins/BotSharp.Plugin.MMPEmbedding/Using.cs
BotSharp.Plugin.MMPEmbedding.csproj
Project file for MMP embedding pluginsrc/Plugins/BotSharp.Plugin.MMPEmbedding/BotSharp.Plugin.MMPEmbedding.csproj
BotSharp.sln
Solution file integration for new pluginBotSharp.sln