Embedding Clusterer
A semantic clustering library for grouping LLM responses using embedding-based methods with KMedoids and Davies-Bouldin Index for cluster evaluation.
Installation
pip install embedding-clusterer
Features
- Embedding-based Clustering: Use sentence embeddings to group similar responses
- KMedoids Algorithm: Robust clustering with actual representative samples
- Davies-Bouldin Index: Automatic cluster evaluation and quality assessment
- Transformer Models: Compatible with Hugging Face sentence-transformers
Usage
from embedding_clusterer import SemanticClusterer
clusterer = SemanticClusterer()
clusters = clusterer.cluster(texts, num_clusters=3)
Dependencies
- numpy
- scikit-learn
- sentence-transformers
License
See LICENSE file for details.
Release files for embedding-clusterer 0.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 | |
|---|---|---|---|
| embedding_clusterer-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| embedding_clusterer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / embedding_clusterer-0.1.0.tar.gz
| Download URL | embedding_clusterer-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd112f9820c20d900cb031d8b9ad145cd25a59ee8a4b680917947ff763b001c9
|
|
BLAKE2b-256 checksum How to use checksums |
2dd31377f878b77128e914bf2fb1d4966d810cb89e2c66d71d1dedd635ced1e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / embedding_clusterer-0.1.0-py3-none-any.whl
| Download URL | embedding_clusterer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84162b923d06f8066ff60814eb4f2e55d890d82dd214d5a5ca3697b7352931e3
|
|
BLAKE2b-256 checksum How to use checksums |
0a69dbe16e8fa6b47df7576f3fe36d67120cca177e846131efb2e61a701bd8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|