Skip to main content

both_embeddings

Function both_embeddings 

Source
pub async fn both_embeddings(
    __arg0: State<Arc<AppState>>,
    __arg1: Json<DualRequest>,
) -> Result<Json<DualResponse>, AppError>
Expand description

Handles POST /v1/embeddings:both — returns dense and sparse embeddings in one pass.

§Errors

§Panics

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