Spaces:
Sleeping
Sleeping
sanbo
commited on
Commit
·
a244379
1
Parent(s):
b017a1d
update sth. at 2025-03-03 20:02:34
Browse files- demo/curls.sh +31 -0
demo/curls.sh
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
|
4 |
+
curl https://sanbo1200-jina-embeddings-v3.hf.space/api/v1/embeddings \
|
5 |
+
-H "Content-Type: application/json" \
|
6 |
+
-d '{
|
7 |
+
"input": "Your text string goes here",
|
8 |
+
"model": "text-embedding-3-small"
|
9 |
+
}'
|
10 |
+
|
11 |
+
# {
|
12 |
+
# "object": "list",
|
13 |
+
# "data": [
|
14 |
+
# {
|
15 |
+
# "object": "embedding",
|
16 |
+
# "index": 0,
|
17 |
+
# "embedding": [
|
18 |
+
# -0.006929283495992422,
|
19 |
+
# -0.005336422007530928,
|
20 |
+
# -4.547132266452536e-05,
|
21 |
+
# -0.024047505110502243
|
22 |
+
# ],
|
23 |
+
# }
|
24 |
+
# ],
|
25 |
+
# "model": "text-embedding-3-small",
|
26 |
+
# "usage": {
|
27 |
+
# "prompt_tokens": 5,
|
28 |
+
# "total_tokens": 5
|
29 |
+
# }
|
30 |
+
# }
|
31 |
+
|