Skip to main content

Module batch

Module batch 

Source
Expand description

Batch processing utilities for efficient embedding generation.

Structs§

BatchProcessor
Batch processor for preparing text inputs for embedding models.
PreparedBatch
Prepared batch of tokenized inputs ready for ORT inference.

Functions§

mean_pooling
Apply mean pooling to ORT last-hidden-state output.
normalize_embeddings
Normalize embeddings to unit length (L2 normalization), in-place.