{"slug": "hugging-face-s-text-embeddings-inference-library", "title": "Hugging Face's Text Embeddings Inference Library", "summary": "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.", "body_md": "http POST 127.0.0.1:8080/embed \\\n  inputs:=\n\"\n$(\njq \n'\n.[0:1]\n'\n sentences.json\n)\n\"\n \n|\n\n  jq -c \n'\n.[][:5]\n'\n\nhttp POST 127.0.0.1:8080/embed \\\n  inputs:=\n\"\n$(\njq \n'\n.[0:10]\n'\n sentences.json\n)\n\"\n \n|\n\n  jq -c \n'\n.[][:5]\n'", "url": "https://wpnews.pro/news/hugging-face-s-text-embeddings-inference-library", "canonical_source": "https://gist.github.com/mneedham/eec9246a5ce95dc792f2e73b16dfe78e", "published_at": "2023-10-28 08:30:16+00:00", "updated_at": "2026-05-23 22:35:25.672689+00:00", "lang": "en", "topics": ["machine-learning", "developer-tools", "open-source"], "entities": ["Hugging Face", "Text Embeddings Inference"], "alternates": {"html": "https://wpnews.pro/news/hugging-face-s-text-embeddings-inference-library", "markdown": "https://wpnews.pro/news/hugging-face-s-text-embeddings-inference-library.md", "text": "https://wpnews.pro/news/hugging-face-s-text-embeddings-inference-library.txt", "jsonld": "https://wpnews.pro/news/hugging-face-s-text-embeddings-inference-library.jsonld"}}