Demonstrating trim functions on real WildChat-1M conversations
This demo shows how the trimMiddle() function works in the LLM router architecture. The function trims messages by keeping the start (60%) and end (40%) with an ellipsis in between, reducing token count while preserving context for intent classification. Adjust the max length sliders below to see how different messages are trimmed.
Loading conversations...