Spaces:
Running
Running
File size: 2,480 Bytes
0a567c1 1c96ca8 0a567c1 3028bfb 979bfc3 4921845 3028bfb 979bfc3 068937b 11347db 4921845 f1b18bb b734492 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
---
title: Jina Embeddings V3
emoji: 🦀
colorFrom: green
colorTo: blue
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: false
short_description: jina-embeddings-v3
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
## Usage
You can generate embeddings by sending a POST request to one of the following endpoints:
- `/generate_embeddings`
- `/api/v1/embeddings`
- `/hf/v1/embeddings`
- `/api/v1/chat/completions`
- `/hf/v1/chat/completions`
Example request using `curl`:
``` bash
curl -X POST https://sanbo1200-jina-embeddings-v3.hf.space/api/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"input": "Your text string goes here",
"model": "jinaai/jina-embeddings-v3"
}'
curl -X POST https://sanbo1200-jina-embeddings-v3.hf.space/api/embed \
-H "Content-Type: application/json" \
-d '{
"prompt": "Your text string goes here",
"model": "jinaai/jina-embeddings-v3"
}'
curl -X POST https://sanbo1200-jina-embeddings-v3.hf.space/embed \
-H "Content-Type: application/json" \
-d '{
"prompt": "Your text string goes here",
"model": "jinaai/jina-embeddings-v3"
}'
curl -X POST https://sanbo1200-jina-embeddings-v3.hf.space/hf/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"input": "Your text string goes here",
"model": "jinaai/jina-embeddings-v3"
}'
curl https://api.jina.ai/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer jina_xxxx" \
-d @- <<EOFEOF
{
"model": "jina-clip-v2",
"dimensions": 1024,
"normalized": true,
"embedding_type": "float",
"input": [
{
"text": "A beautiful sunset over the beach"
},
{
"text": "Un beau coucher de soleil sur la plage"
},
{
"text": "海滩上美丽的日落"
},
{
"text": "浜辺に沈む美しい夕日"
},
{
"image": "https://i.ibb.co/nQNGqL0/beach1.jpg"
},
{
"image": "https://i.ibb.co/r5w8hG8/beach2.jpg"
},
{
"image": "R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7"
}
]
}
EOFEOF
``` |