Skip to main content

sparse_embeddings

Function sparse_embeddings 

Source
pub async fn sparse_embeddings(
    __arg0: State<Arc<AppState>>,
    __arg1: Json<SparseRequest>,
) -> Result<Json<SparseResponse>, AppError>
Expand description

Handles POST /v1/sparse-embeddings — returns sparse (SPLADE-style) embeddings.

§Errors

§Panics

Panics if the request semaphore has been closed — should not occur in normal operation.