Get Embedding Stats
const url = 'https://example.com/admin/embedding-stats/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/admin/embedding-stats/ \ --header 'Authorization: Bearer <token>'Return semantic-search embedding coverage statistics (admin only).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
object
Total number of records in the catalog.
Number of records with an embedding for the ACTIVE embedding model — the only vectors semantic search can use.
Number of records without an active-model embedding (total_records - embedded_records).
Subset of missing_records whose only stored embeddings belong to other models. Regenerating all embeddings clears these; generating missing ones does not.
Embedding coverage as a percentage (0-100).
Example generated
{ "total_records": 1, "embedded_records": 1, "missing_records": 1, "stale_records": 1, "coverage_percent": 1}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request