Skip to main content
GET
/
api
/
vector
/
health
Vector Health Check
curl --request GET \
  --url https://api.example.com/api/vector/health
{
  "status": "<string>",
  "embedding_enabled": true,
  "vertex_ai_initialized": true,
  "vector_collections_count": 123
}

Authentication

No authentication required.

Example Request

curl https://api.sari-platform.com/api/vector/health

Response

status
string
Service status: healthy or unhealthy
embedding_enabled
boolean
Whether Vertex AI embeddings are enabled
vertex_ai_initialized
boolean
Whether Vertex AI client is initialized
vector_collections_count
integer
Number of collections with embeddings

Example Response

{
  "status": "healthy",
  "embedding_enabled": true,
  "vertex_ai_initialized": true,
  "vector_collections_count": 15
}

Health Indicators

IndicatorHealthy When
statusAll checks pass
embedding_enabledENABLE_VECTOR_EMBEDDINGS=true
vertex_ai_initializedVertex AI SDK connected
vector_collections_count> 0 collections indexed

Unhealthy Response

{
  "status": "unhealthy",
  "embedding_enabled": true,
  "vertex_ai_initialized": false,
  "vector_collections_count": 0,
  "error": "Failed to connect to Vertex AI"
}