Skip to main content

parse_execution

Function parse_execution 

Source
pub fn parse_execution(s: &str) -> ExecutionPreference
Expand description

Resolve an ExecutionPreference from a string. Unknown or unparseable values emit tracing::warn and return Cpu.

This helper is intentionally pub so the parallel lunaris_rerank::fastembed module can resolve the same env variable with the same semantics — operators set the variable once and both backends honour it.