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] '
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.
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] '
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.