Search…
Embeddings
Get a vector representation of a given text input.

Create embedding

post
https://example.forefront.link
/embedding
Create embedding

Example request

Python
cURL
1
import requests
2
3
headers = {"Authorization": "Bearer <INSERT_YOUR_TOKEN>"}
4
5
body = {
6
"texts": ["hello world", "once upon a time"]
7
}
8
9
res = requests.post(
10
"https://search-qa.forefront.link/embedding",
11
json=body,
12
headers=headers
13
)
Copied!
1
curl https://search-qa.forefront.link/embedding \
2
-H 'Content-Type: application/json' \
3
-H 'Authorization: Bearer YOUR_API_KEY' \
4
-d '{
5
"texts": ["hello world", "once upon a time"]
6
}'
Copied!