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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
teicli-0.3.3.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file teicli-0.3.3.tar.gz.
File metadata
- Download URL: teicli-0.3.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a1089c616577b91ac2461c6eeab2822e37b8b278e2696ebe6c02660773a83c
|
|
| MD5 |
b7d7df62c49118296781b1e8e25cea28
|
|
| BLAKE2b-256 |
b4453bb3a3004ea95aa89c1efe506b54876d7488048ca9ed945c25ac048635f6
|
File details
Details for the file teicli-0.3.3-py3-none-any.whl.
File metadata
- Download URL: teicli-0.3.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02a726c1c05a91c69d147237704551a25c49c38bee975e02113973b301e6ec9f
|
|
| MD5 |
c47e208bdc89b5cdb1155a97c7b77146
|
|
| BLAKE2b-256 |
8111f7385ae6988f44c00103312cc38dfaec9e4709bff069a158958f47790148
|