Embedding Selector Framework
- This framework helps you automatically select the most suitable text embedding model for a given downstream use case.
- It analyzes task requirements (e.g., retrieval, classification, summarization), matches them against available embedding models, and evaluates performance on relevant benchmarks.
Features
- Use Case–Driven Selection: Takes a natural-language description of a use case and extracts structured metadata (e.g., languages, token limits, complexity).
- Metadata Extraction: Uses advanced LLM models to normalize requirements into a standardized schema (parameters, memory, licensing, etc.).
- Model Matching: Filters embedding models based on attributes like size, efficiency, license, and language coverage.
- Task Alignment: Selects relevant evaluation tasks from MTEB (Massive Text Embedding Benchmark).
- Performance Evaluation: Loads benchmark results and computes average scores per candidate model.
How It Works
The pipeline runs in sequential steps:
- Use Case Selection Choose from predefined scenarios (chatbots, legal retrieval, recommendations, sentiment analysis, summarization, etc.) or provide your own description.
- Requirement Extraction (LLM Agent) GPT-4o parses the description into structured metadata, including: Supported languages Max token length Memory usage & parameter limits Task/domain classification
- Model Filtering Candidate models from MTEB are filtered according to the extracted attributes.
- Task Evaluation Candidate models are benchmarked on the most relevant MTEB tasks (retrieval, classification, summarization, etc.).
- Ranking & Export Models are ranked by performance (with ties broken by efficiency) and exported to CSV for inspection.
Usage
To use the tool, follow these steps:
pip install EmbedSelection
EmbedSelection
Contributing
Contributions to improve the tool are welcome! Feel free to open issues for bugs or feature requests, or submit pull requests for enhancements.
Acknowledgements
This project utilizes MTEB benchmark from huggingface : https://huggingface.co/spaces/mteb/leaderboard
Metadata
Release files for EmbedSelection 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| embedselection-1.0.tar.gz | 11.1 kB | Without provenance | Details for embedselection-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| embedselection-1.0-py3-none-any.whl | Python 3 | none | any | Details for embedselection-1.0-py3-none-any.whl |
Total release size: 22.5 kB
Release files / embedselection-1.0.tar.gz
| Download URL | embedselection-1.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe681977f34c7c7b6b5be21cf92ea799072ed9f22564f3e61191d5ee34bc0232
|
|
BLAKE2b-256 checksum How to use checksums |
9358f56df2a462c9063d6f3b64ee346728e1b1f3f8087b9196d47826da27e98b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / embedselection-1.0-py3-none-any.whl
| Download URL | embedselection-1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
710360796aa25694d5755464d01a2622f8e1784a10b3129750e5eb89ef49585f
|
|
BLAKE2b-256 checksum How to use checksums |
226d3119e980ed82fd1ed5e983c7aa17475c64e5d28e7fc676a4aa7c3561f333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for EmbedSelection 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.