> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nalhajery.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vector Health Check

> Check the health of the vector search service

## Authentication

No authentication required.

### Example Request

```bash theme={null}
curl https://api.sari-platform.com/api/vector/health
```

## Response

<ResponseField name="status" type="string">
  Service status: `healthy` or `unhealthy`
</ResponseField>

<ResponseField name="embedding_enabled" type="boolean">
  Whether Vertex AI embeddings are enabled
</ResponseField>

<ResponseField name="vertex_ai_initialized" type="boolean">
  Whether Vertex AI client is initialized
</ResponseField>

<ResponseField name="vector_collections_count" type="integer">
  Number of collections with embeddings
</ResponseField>

### Example Response

```json theme={null}
{
  "status": "healthy",
  "embedding_enabled": true,
  "vertex_ai_initialized": true,
  "vector_collections_count": 15
}
```

## Health Indicators

| Indicator                  | Healthy When                    |
| -------------------------- | ------------------------------- |
| `status`                   | All checks pass                 |
| `embedding_enabled`        | `ENABLE_VECTOR_EMBEDDINGS=true` |
| `vertex_ai_initialized`    | Vertex AI SDK connected         |
| `vector_collections_count` | > 0 collections indexed         |

## Unhealthy Response

```json theme={null}
{
  "status": "unhealthy",
  "embedding_enabled": true,
  "vertex_ai_initialized": false,
  "vector_collections_count": 0,
  "error": "Failed to connect to Vertex AI"
}
```
