superduper allows users to work with self-hosted embedding models via [Sentence-Transformers](https://sbert.net).
Project description
superduper_sentence_transformers
superduper allows users to work with self-hosted embedding models via Sentence-Transformers.
Installation
pip install superduper_sentence_transformers
API
Class | Description |
---|---|
superduper_sentence_transformers.model.SentenceTransformer |
A model for sentence embeddings using sentence-transformers . |
Examples
SentenceTransformer
from superduper import vector
from superduper_sentence_transformers import SentenceTransformer
import sentence_transformers
model = SentenceTransformer(
identifier="embedding",
object=sentence_transformers.SentenceTransformer("BAAI/bge-small-en"),
datatype=vector(shape=(1024,)),
postprocess=lambda x: x.tolist(),
predict_kwargs={"show_progress_bar": True},
)
model.predict("What is superduper")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file superduper_sentence_transformers-0.4.0.tar.gz
.
File metadata
- Download URL: superduper_sentence_transformers-0.4.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4b85105d80a123f9d8e69e0db8a91a7865faa11c23b2cc5e72ee06533b38fe |
|
MD5 | a5c8d608596bee1273819c77d4c3a18e |
|
BLAKE2b-256 | c6294d44ea8c01e7c490d6bdb98a8ebf50335ed48b871055f2d59ddd633b8ce7 |
Provenance
The following attestation bundles were made for superduper_sentence_transformers-0.4.0.tar.gz
:
Publisher:
release_plugins.yaml
on superduper-io/superduper
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_sentence_transformers-0.4.0.tar.gz
- Subject digest:
4c4b85105d80a123f9d8e69e0db8a91a7865faa11c23b2cc5e72ee06533b38fe
- Sigstore transparency entry: 146081758
- Sigstore integration time:
- Predicate type:
File details
Details for the file superduper_sentence_transformers-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: superduper_sentence_transformers-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2ee5fc90b0113192459ce221cfa2ecca66f66d4a7629be5db854b803771ba9 |
|
MD5 | 8866fec5fca979b12c925ebd5fbb5481 |
|
BLAKE2b-256 | 174b0da498ff2e8ce60dd34c9fdf1ad935b2bd2609060b546dd1bbda27e7b145 |
Provenance
The following attestation bundles were made for superduper_sentence_transformers-0.4.0-py3-none-any.whl
:
Publisher:
release_plugins.yaml
on superduper-io/superduper
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
superduper_sentence_transformers-0.4.0-py3-none-any.whl
- Subject digest:
aa2ee5fc90b0113192459ce221cfa2ecca66f66d4a7629be5db854b803771ba9
- Sigstore transparency entry: 146081759
- Sigstore integration time:
- Predicate type: