Skip to main content

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

File hashes

Hashes for superduper_sentence_transformers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4c4b85105d80a123f9d8e69e0db8a91a7865faa11c23b2cc5e72ee06533b38fe
MD5 a5c8d608596bee1273819c77d4c3a18e
BLAKE2b-256 c6294d44ea8c01e7c490d6bdb98a8ebf50335ed48b871055f2d59ddd633b8ce7

See more details on using hashes here.

Provenance

The following attestation bundles were made for superduper_sentence_transformers-0.4.0.tar.gz:

Publisher: release_plugins.yaml on superduper-io/superduper

Attestations:

File details

Details for the file superduper_sentence_transformers-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for superduper_sentence_transformers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa2ee5fc90b0113192459ce221cfa2ecca66f66d4a7629be5db854b803771ba9
MD5 8866fec5fca979b12c925ebd5fbb5481
BLAKE2b-256 174b0da498ff2e8ce60dd34c9fdf1ad935b2bd2609060b546dd1bbda27e7b145

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page