pub fn compute_cache_namespace(
max_segment_tokens: usize,
context_tokens: usize,
profile: &str,
batch_enabled: bool,
prompt_version: &str,
glossary_fingerprint: &str,
style_fingerprint: &str,
entities_fingerprint: &str,
) -> StringExpand description
Compute a cache namespace that scopes lookups to a single set of schema and segmentation parameters. Cached rows from a different namespace are not eligible for reuse.
style_fingerprint and entities_fingerprint are opt-in mixins:
pass an empty string to preserve cache compatibility with runs that
didn’t use the feature; pass a non-empty fingerprint when the
rendered prompt actually changes. The two slots use distinct domain
separators so a style fingerprint can never collide with an entity
fingerprint of the same content.