Skip to main content

DEFAULT_REEMBED_CLAIM_BATCH

Constant DEFAULT_REEMBED_CLAIM_BATCH 

Source
pub const DEFAULT_REEMBED_CLAIM_BATCH: usize = 32;
Expand description

GAP-SG-141 (B1): how many ReEmbed queue rows a single claim takes.

Deliberately aligned with the 32-item chunk width that crate::embedder::embed_passages_parallel_shared uses internally on the OpenRouter path: with 32 or fewer texts that function issues exactly ONE serial REST call, so one claim becomes one request. Raising this above 32 splits the claim into several requests again and buys nothing; the range clamp below still allows it for hosts that deliberately trade request count for claim overhead.

Override via XDG enrich.reembed_claim_batch.