cd /news/machine-learning/hugging-face-s-text-embeddings-infer… · home topics machine-learning article
[ARTICLE · art-12572] src=gist.github.com ↗ pub= topic=machine-learning verified=true sentiment=· neutral

Hugging Face's Text Embeddings Inference Library

Based on the provided text, the article describes using the Hugging Face Text Embeddings Inference library via a local server at port 8080. It demonstrates sending HTTP POST requests to the `/embed` endpoint, first with a single sentence and then with ten sentences from a JSON file, and piping the output through `jq` to display only the first five embedding values.

read1 min views28 publishedOct 28, 2023

http POST 127.0.0.1:8080/embed
inputs:= " $( jq ' .[0:1] ' sentences.json ) "

|

jq -c ' .[][:5] '

http POST 127.0.0.1:8080/embed
inputs:= " $( jq ' .[0:10] ' sentences.json ) "

|

jq -c ' .[][:5] '

── more in #machine-learning 4 stories · sorted by recency
── more on @hugging face 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/hugging-face-s-text-…] indexed:0 read:1min 2023-10-28 ·