TEI Python
Text Embeddings Inference (TEI)'s unofficial python wrapper library for batch processing with asyncio.
Get Started
pip install teicli
from tei import TEIClient
client = TEIClient()
client.embed_sync("Hello world!")
# [0.010536194, 0.05859375, 0.022262....
routine = client.embed_batch(["Hello world!", "Hello world!", "Hello world!"])
# [[0.010536194, 0.05859375, 0.022262....
You need to run own text-embeddings-inference server. Check here
docker run --gpus all -p 8080:80 -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:0.3.0 --model-id $model --revision
$revision
Metadata
Release files for teicli 0.3.3
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 | |
|---|---|---|---|---|
| teicli-0.3.3.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| teicli-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / teicli-0.3.3.tar.gz
| Download URL | teicli-0.3.3.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07a1089c616577b91ac2461c6eeab2822e37b8b278e2696ebe6c02660773a83c
|
|
BLAKE2b-256 checksum How to use checksums |
b4453bb3a3004ea95aa89c1efe506b54876d7488048ca9ed945c25ac048635f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / teicli-0.3.3-py3-none-any.whl
| Download URL | teicli-0.3.3-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02a726c1c05a91c69d147237704551a25c49c38bee975e02113973b301e6ec9f
|
|
BLAKE2b-256 checksum How to use checksums |
8111f7385ae6988f44c00103312cc38dfaec9e4709bff069a158958f47790148
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for teicli 0.3.3
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.