Skip to content
getgeolens.com

Get Embedding Stats

GET
/admin/embedding-stats/
curl --request GET \
--url https://example.com/admin/embedding-stats/ \
--header 'Authorization: Bearer <token>'

Return embedding coverage and the state of the backfill runs (admin only).

Successful Response

Media type application/json
EmbeddingStatsResponse
object
total_records
required
Total Records

Total number of records in the catalog.

integer
embedded_records
required
Embedded Records

Number of records with an embedding for the ACTIVE embedding model — the only vectors semantic search can use.

integer
missing_records
required
Missing Records

Number of records without an active-model embedding (total_records - embedded_records).

integer
stale_records
required
Stale Records

Subset of missing_records whose only stored embeddings belong to other models. Regenerating all embeddings clears these; generating missing ones does not.

integer
coverage_percent
required
Coverage Percent

Embedding coverage as a percentage (0-100).

number
current_run
Any of:
BackfillRunProgress

The embedding backfill run currently holding the single run slot.

object
job_id
required
Job Id

Identifier of the run in flight.

string format: uuid
status
required
Status

Job status: ‘pending’ or ‘running’.

string
records_processed
required
Records Processed

Records the run has embedded so far.

integer
records_total
Any of:
integer
started_at
Any of:
string format: date-time
heartbeat_at
Any of:
string format: date-time
recent_runs
Recent Runs

The most recent finished backfill runs, newest first.

Array<object>
BackfillRunSummary

One finished embedding backfill run.

object
job_id
required
Job Id

Identifier of the finished run.

string format: uuid
status
required
Status

How the run ended: ‘complete’, ‘failed’ or ‘cancelled’.

string
started_at
Any of:
string format: date-time
finished_at
Any of:
string format: date-time
records_processed
required
Records Processed

Records the run embedded.

integer
records_failed
Any of:
integer
error_code
Any of:
string
estimate
Any of:
BackfillEstimate

How long each backfill action should take, before starting one.

Both figures come from the throughput of the most recent completed run, so they describe this deployment’s own provider rather than a generic rate.

object
missing_seconds
required
Missing Seconds

Estimated seconds to embed the records that lack a usable vector.

number
all_seconds
required
All Seconds

Estimated seconds to regenerate every record in the catalog.

number
Example generated
{
"total_records": 1,
"embedded_records": 1,
"missing_records": 1,
"stale_records": 1,
"coverage_percent": 1,
"current_run": {
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"status": "example",
"records_processed": 1,
"records_total": 1,
"started_at": "2026-04-15T12:00:00Z",
"heartbeat_at": "2026-04-15T12:00:00Z"
},
"recent_runs": [
{
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"status": "example",
"started_at": "2026-04-15T12:00:00Z",
"finished_at": "2026-04-15T12:00:00Z",
"records_processed": 1,
"records_failed": 1,
"error_code": "example"
}
],
"estimate": {
"missing_seconds": 1,
"all_seconds": 1
}
}

Bad request — invalid query parameters or payload

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Unauthorized — missing or invalid credentials

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Forbidden — caller lacks access to this resource

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Not found

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Validation error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}