Description |
Gets entities, starting from offset. |
URL |
https://embeddings.cc/api/v1/get_entities |
HTTP method |
POST |
Parameters |
size { default: 100, max: 10000, format: JSON }
offset { default: 0, format: JSON }
index { optional, format: JSON }
|
Returns |
List of entity identifiers, format: JSON |
Python code example |
import httpx
response = httpx.post('https://embeddings.cc/api/v1/get_entities', json={'size': 100, 'offset': 0})
if response.status_code == 200:
print(response.json())
else:
print('Error:', response.text)
|
Test |
|
Test input |
|
Test result |
|
Description |
Takes entity identifiers and gets their embeddings. |
URL |
https://embeddings.cc/api/v1/get_embeddings |
HTTP method |
POST |
Parameters |
entities { value: list of entity identifiers, max: 100, format: JSON }
index { optional, format: JSON }
|
Returns |
List of 2-element-lists (entity identifier and embeddings), format: JSON |
Python code example |
import httpx
response = httpx.post('https://embeddings.cc/api/v1/get_embeddings', json={'entities': ['http://example.org/1', 'http://example.org/2']})
if response.status_code == 200:
print(response.json())
else:
print('Error:', response.text)
|
Test |
|
Test input |
|
Test result |
|