Skip to main content

Module weights

Module weights 

Source
Expand description

Bundled BGE-M3 sparse-linear projection weights.

The weights file (sparse_linear.safetensors) is embedded at compile time via include_bytes! and parsed once on first use. All workers share the same static reference via sparse_linear.

Staticsยง

SPARSE_LINEAR ๐Ÿ”’
WEIGHTS_BYTES ๐Ÿ”’
Bundled sparse-linear projection weights for BGE-M3 sparse embedding.

Functionsยง

sparse_linear ๐Ÿ”’
Returns the sparse-linear projection weights used by BGE-M3 sparse embedding.