Skip to main content

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.

Metadata

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)

Source distribution for embedding-clusterer 0.1.0
File Size Uploaded Provenance Actions
embedding_clusterer-0.1.0.tar.gz 4.5 kB Without provenance Details for embedding_clusterer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for embedding-clusterer 0.1.0
File Interpreter ABI Platform Actions
embedding_clusterer-0.1.0-py3-none-any.whl Python 3 none any Details for embedding_clusterer-0.1.0-py3-none-any.whl

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

Security for embedding-clusterer 0.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page