INNER CODE UNIT · Python

EmbedResponse

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

class EmbedResponse(BaseModel):
    embeddings: list[list[float]]
    model: str
    dimension: int


class HealthResponse(BaseModel):
    status: str
    model: str
    dimension: int


# -- Endpoints -----------------------------------------------------------------


@app.post("/embed", response_model=EmbedResponse)
async def embed(request: EmbedRequest) -> EmbedResponse:
    """Generate embeddings for a batch of texts."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…