INNER CODE UNIT · Python

health

scub-france/docling-Studio · embedding-service/main.py:81

async def health() -> HealthResponse:
    """Health check — verifies the model is loaded."""
    if model is None:
        raise HTTPException(status_code=503, detail="Model not loaded yet")
    return HealthResponse(
        status="ok",
        model=MODEL_NAME,
        dimension=model.get_sentence_embedding_dimension(),
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…