feat:support for two long-context embedding models (Qwen3 and Gemma) #453
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
support for two long-context embedding models (Qwen3-Embedding-0.6B and EmbeddingGemma-300M)
What this PR does / why we need it:
1. Qwen3-Embedding-0.6B
Model Specifications:
Key Features:
2. EmbeddingGemma-300M
Model Specifications:
Key Features:
3. Intelligent Routing System
Routing Logic:
quality_priority > 0.7
latency_priority > 0.7
latency ≤ 0.7
)512 < seq_len ≤ 4096
+ Balancedseq_len > 4096
Features:
4. Enhanced API Endpoints
4.1 Embedding Generation API
Endpoint:
POST /api/v1/embeddings
Request:
Response:
4.2 Cosine Similarity Calculation API
Endpoint:
POST /api/v1/similarity
Request:
Response:
4.3 Batch Similarity Matching API
Endpoint:
POST /api/v1/similarity/batch
Request:
Response:
4.4 Embedding Models Information API
Endpoint:
GET /api/v1/embeddings/models
Request:
Response:
Configuration
config.yaml
Which issue(s) this PR fixes:
part of #266
Release Notes: Yes/No