Shared tokenization utilities for indexing and search.
Used by the ContextIndex and search paths to ensure consistent token generation across all search operations.
ContextIndex