Description | Returns HTTP code 200, if embedddings.cc is running stable. |
URL | https://embeddings.cc/api/v1/ping |
HTTP method | POST or GET |
Python code example |
|
Test | |
Test result |
|
Description | Gets available indices (databases). |
URL | https://embeddings.cc/api/v1/get_indices |
HTTP method | POST |
Returns | List of available indices, format: JSON |
Python code example |
|
Test | |
Test result |
|
Description | Gets number of available entities. |
URL | https://embeddings.cc/api/v1/get_size |
HTTP method | POST |
Parameter | index { optional, format: JSON } |
Returns | Number of available entities, format: text |
Python code example |
|
Test | |
Test result |
|
Description | Gets identifiers of example entities. |
URL | https://embeddings.cc/api/v1/get_random_entities |
HTTP method | POST |
Parameters |
size { default: 10, max: 100, format: JSON } index { optional, format: JSON } |
Returns | List of entity identifiers, format: JSON |
Python code example |
|
Test | |
Test input |
|
Test result |
|
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 |
|
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 |
|
Test |
Description | Takes embeddings and gets the top 10 similar embeddings based on cosine similarity. |
URL | https://embeddings.cc/api/v1/get_similar_embeddings |
HTTP method | POST |
Parameters |
embeddings { value: list of embeddings, max: 100, format: JSON } |
Returns | List of 4-element-lists (request index, cosine similarity, entity identifier and embeddings), format: JSON |
Python code example |
|
Test | |
Test input |
|
Test result |
|
Description | Takes entity identifiers and gets the top 10 similar entity identifiers based on the cosine similarity of their embeddings. |
URL | https://embeddings.cc/api/v1/get_similar_entities |
HTTP method | POST |
Parameters |
embeddings { value: list of entity identifiers, max: 100, format: JSON } |
Returns | List of 3-element-lists (request index, cosine similarity and entity identifier), format: JSON |
Python code example |
|
Test | |
Test input |
|
Test result |
|