Skip to main content

Text Embeddings Inference (TEI)'s unofficial python wrapper library for batch processing with asyncio

Project description

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

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

teicli-0.3.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

teicli-0.3.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for teicli-0.3.3.tar.gz
Algorithm Hash digest
SHA256 07a1089c616577b91ac2461c6eeab2822e37b8b278e2696ebe6c02660773a83c
MD5 b7d7df62c49118296781b1e8e25cea28
BLAKE2b-256 b4453bb3a3004ea95aa89c1efe506b54876d7488048ca9ed945c25ac048635f6

See more details on using hashes here.

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

Hashes for teicli-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 02a726c1c05a91c69d147237704551a25c49c38bee975e02113973b301e6ec9f
MD5 c47e208bdc89b5cdb1155a97c7b77146
BLAKE2b-256 8111f7385ae6988f44c00103312cc38dfaec9e4709bff069a158958f47790148

See more details on using hashes here.

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