Embeddings API#
Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
Get default embedding |
|
|
Set default embedding |
|
|
List embedding models |
|
|
List embedding setups |
|
|
Create embedding setup |
|
|
Update embedding setup |
|
|
Delete embedding setup |
|
|
Set default embedding setup |
GET /v1/embedding-default#
Get default embedding
Returns the caller’s default embedding selection, or null when none is set.
Operation:
default_v1_embedding_default_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/embedding-default" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PUT /v1/embedding-default#
Set default embedding
Sets the caller’s default embedding selection, or clears it when embedding is null. The selection is checked against the available models.
Operation:
set_default_v1_embedding_default_putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/embedding-default" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/embedding-models#
List embedding models
Lists the embedding models this deployment offers. With include_availability=true each model also reports whether it can be used now and, if not, why.
Operation:
models_v1_embedding_models_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/embedding-models" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
boolean |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/embedding-setups#
List embedding setups
Lists the caller’s saved embedding setups.
Operation:
list_setups_v1_embedding_setups_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/embedding-setups" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/embedding-setups#
Create embedding setup
Saves a new embedding setup for the caller. Returns 409 when the name already exists or the per-user limit is reached.
Operation:
create_setup_v1_embedding_setups_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/embedding-setups" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Created |
|
|
Validation Error |
PUT /v1/embedding-setups/{setup_id}#
Update embedding setup
Replaces one of the caller’s setups. Returns 404 when it is not theirs and 409 on a name clash or when the model contract changed.
Operation:
update_setup_v1_embedding_setups__setup_id__putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/embedding-setups/<setup_id>" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
yes |
The embedding setup ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
DELETE /v1/embedding-setups/{setup_id}#
Delete embedding setup
Deletes one of the caller’s setups and returns the remaining list.
Operation:
delete_setup_v1_embedding_setups__setup_id__deleteAccess: bearer token or console session cookie
curl -X DELETE "https://geonemo.example.com/v1/embedding-setups/<setup_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
yes |
The embedding setup ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/embedding-setups/{setup_id}/default#
Set default embedding setup
Makes one of the caller’s setups their default and returns the updated list. Returns 409 when the setup is unavailable.
Operation:
default_setup_v1_embedding_setups__setup_id__default_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/embedding-setups/<setup_id>/default" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
yes |
The embedding setup ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |