Retrieval API#
Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
Get retrieval contracts |
|
|
List corpora |
|
|
Create corpus |
|
|
Get corpus |
|
|
List corpus artifacts |
|
|
Get corpus artifact |
|
|
Import precomputed vectors |
|
|
List corpus jobs |
|
|
Submit retrieval job |
|
|
Get retrieval job |
|
|
Act on retrieval job |
|
|
Get corpus maintenance |
|
|
Configure corpus maintenance |
|
|
Pause or resume maintenance |
|
|
Update corpus metadata |
|
|
Submit prepared inputs |
|
|
Sample corpus artifacts |
|
|
List corpus snapshots |
|
|
Create corpus snapshot |
|
|
List corpus sources |
|
|
Get corpus summary |
|
|
List corpus directory |
|
|
Search retrieval corpora |
|
|
Resolve retrieval source |
GET /v1/retrieval/contracts#
Get retrieval contracts
Returns the retrieval profiles, embedding spaces and limits this deployment enables.
Operation:
contracts_v1_retrieval_contracts_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/contracts" \
-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 |
GET /v1/retrieval/corpora#
List corpora
Lists corpora, paged by after and limit (at most 100), optionally for one source_key.
Operation:
corpora_v1_retrieval_corpora_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string or null |
||
|
query |
string or null |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/corpora#
Create corpus
Creates a corpus: either a fixed set of captured sources, or a maintained corpus the service keeps up to date.
Operation:
create_v1_retrieval_corpora_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora" \
-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 |
GET /v1/retrieval/corpora/{corpus_id}#
Get corpus
Returns one corpus. Requires read access to it.
Operation:
corpus_v1_retrieval_corpora__corpus_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/artifacts#
List corpus artifacts
Lists a corpus’s artifacts, optionally for one source_key or space_id, paged by after and limit (at most 100).
Operation:
artifacts_v1_retrieval_corpora__corpus_id__artifacts_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/artifacts" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
query |
string or null |
||
|
query |
string or null |
||
|
query |
integer |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/artifacts/{artifact_id}#
Get corpus artifact
Returns one retained artifact of a corpus. With require_current=true it fails unless the artifact is current. Returns 503 when original artifact reads are unavailable.
Operation:
artifact_v1_retrieval_corpora__corpus_id__artifacts__artifact_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/artifacts/<artifact_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
path |
string |
yes |
The artifact ID. |
|
query |
boolean |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/corpora/{corpus_id}/imports#
Import precomputed vectors
Queues a job that imports precomputed vectors into an embedding space, recording the producer and its revision. Returns 202 with the job. The body’s idempotency_key makes a retry return the same job. Returns 503 when external vector imports are not enabled.
Operation:
import_vectors_v1_retrieval_corpora__corpus_id__imports_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/imports" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/jobs#
List corpus jobs
Lists a corpus’s retrieval jobs, paged by after and limit (at most 100).
Operation:
jobs_v1_retrieval_corpora__corpus_id__jobs_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
query |
string or null |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/corpora/{corpus_id}/jobs#
Submit retrieval job
Queues a job that makes one source searchable, or keeps its originals, in one embedding space. Returns 202 with the job; poll the job for progress. The body’s idempotency_key makes a retry return the same job.
Operation:
submit_v1_retrieval_corpora__corpus_id__jobs_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/jobs/{job_id}#
Get retrieval job
Returns a job’s state, stage, error and the artifacts it produced.
Operation:
job_v1_retrieval_corpora__corpus_id__jobs__job_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs/<job_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
path |
string |
yes |
The retrieval job ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/corpora/{corpus_id}/jobs/{job_id}/actions#
Act on retrieval job
Pauses, resumes or cancels a job. retry_ambiguous retries work whose outcome is unknown.
Operation:
action_v1_retrieval_corpora__corpus_id__jobs__job_id__actions_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/jobs/<job_id>/actions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
path |
string |
yes |
The retrieval job 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 |
GET /v1/retrieval/corpora/{corpus_id}/maintenance#
Get corpus maintenance
Returns a corpus’s maintenance configuration with its version, pause state, phase and last completed scan.
Operation:
maintenance_v1_retrieval_corpora__corpus_id__maintenance_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/maintenance" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PUT /v1/retrieval/corpora/{corpus_id}/maintenance#
Configure corpus maintenance
Sets what a maintained corpus follows: the catalog or GKB selection and filters, one binding of execution setup per embedding space, and the scan interval in seconds (1 to 86400).
Operation:
configure_maintenance_v1_retrieval_corpora__corpus_id__maintenance_putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/maintenance" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus 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 |
POST /v1/retrieval/corpora/{corpus_id}/maintenance/actions#
Pause or resume maintenance
Pauses or resumes a corpus’s maintenance and returns its updated state.
Operation:
maintenance_action_v1_retrieval_corpora__corpus_id__maintenance_actions_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/maintenance/actions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus 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 |
PUT /v1/retrieval/corpora/{corpus_id}/metadata#
Update corpus metadata
Replaces a corpus’s display name, description and tags and returns its summary.
Operation:
metadata_v1_retrieval_corpora__corpus_id__metadata_putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/metadata" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus 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 |
POST /v1/retrieval/corpora/{corpus_id}/prepared-inputs#
Submit prepared inputs
Queues a job from prepared inputs the caller supplies instead of having the service read the source. Returns 202 with the job. Returns 503 when prepared inputs are not enabled.
Operation:
submit_prepared_v1_retrieval_corpora__corpus_id__prepared_inputs_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/prepared-inputs" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/sample#
Sample corpus artifacts
Returns up to limit (at most 32) artifacts from one embedding space, chosen deterministically by seed.
Operation:
sample_v1_retrieval_corpora__corpus_id__sample_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/sample" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
query |
string |
yes |
|
|
query |
string |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/snapshots#
List corpus snapshots
Lists a corpus’s snapshots, paged by after and limit (at most 100).
Operation:
snapshots_v1_retrieval_corpora__corpus_id__snapshots_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/snapshots" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
query |
string or null |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/corpora/{corpus_id}/snapshots#
Create corpus snapshot
Pins the corpus’s current state for a retrieval profile and returns the snapshot ID. Searches that name the snapshot give repeatable results. Returns 503 when the profile is not enabled.
Operation:
snapshot_v1_retrieval_corpora__corpus_id__snapshots_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/snapshots" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
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 |
GET /v1/retrieval/corpora/{corpus_id}/sources#
List corpus sources
Lists a corpus’s sources, paged by after and limit (at most 100).
Operation:
sources_v1_retrieval_corpora__corpus_id__sources_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/sources" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
query |
string or null |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/retrieval/corpora/{corpus_id}/summary#
Get corpus summary
Returns a corpus’s metadata, membership, vector counts, per-space details, readiness and job counts, with the actions the caller may take.
Operation:
summary_v1_retrieval_corpora__corpus_id__summary_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/corpora/<corpus_id>/summary" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The retrieval corpus ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/retrieval/directory#
List corpus directory
Lists corpus summaries with filters for search text, membership kind, model family, model and readiness, sorted by name, vector count or freshness, and paged by after and limit (at most 100). Also returns totals across the directory.
Operation:
directory_v1_retrieval_directory_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/retrieval/directory" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string or null |
||
|
query |
integer |
||
|
query |
string |
||
|
query |
string or null |
||
|
query |
string or null |
||
|
query |
string or null |
||
|
query |
string or null |
||
|
query |
string |
||
|
query |
boolean |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/retrieval/search#
Search retrieval corpora
Runs up to 8 named queries (vector, text, content or retained artifact) against a corpus with a profile, filters and a result limit (default 20, at most 500). snapshot_id repeats an earlier state. Read-only despite using POST; needs only services:read. Returns 503 when the profile is not enabled.
Operation:
search_v1_retrieval_search_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/search" \
-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 |
POST /v1/retrieval/sources/resolve#
Resolve retrieval source
Resolves a catalog, GKB or dataset source identity to a retrieval source without reading payloads or calling a model. collection is required for catalog and dataset sources. Read-only despite using POST.
Operation:
resolve_source_v1_retrieval_sources_resolve_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/retrieval/sources/resolve" \
-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 |