File size: 419 Bytes
bd92b0c
b1f3d32
bd92b0c
b1f3d32
bd92b0c
 
 
 
6fb249c
bd92b0c
 
 
 
 
6fb249c
bd92b0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import requests

url = 'https://api.jina.ai/v1/embeddings'

headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer jina_4736efa15c0c4e6781a9407683e9e320g-IB4U8jC54rCaxEF5XfmaPfdLXF'
}

data = {
  'input': ["Your text string goes here", "You can send multiple texts"],
  'model': 'jina-embeddings-v2-base-en',
  'encoding_type': 'float'
}

response = requests.post(url, headers=headers, json=data)