from importlib.metadata import version from llama_index.core import Document, Settings from llama_index.core.node_parser import SentenceSplitter from llama_index.core.utils import get_tokenizer sample_text = ( "Refund intake records the ticket number and requested credit. " "Billing review confirms the invoice status and approval owner. " "Manager approval records the customer message and follow-up date. " "Shipping exceptions retain the carrier notes and delivery estimate. " "Final archive keeps the refund decision and audit timestamp. " "Escalation notes list the support queue and backup approver. " "Resolution summaries capture the promised response date. " "Quality review compares the outcome with the original policy." )