by thetokencompany · v0.0.2
LLM input compression middleware. Compresses text to increase context windows and reduce token usage before sending to any LLM.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Reduce LLM costs by compressing your prompts before they reach the model.
┌──────────────┐ ┌─────────────────────┐ ┌───────────┐
│ User Input │ ──▶ │ TTC Compression │ ──▶ │ LLM Node │
│ │ │ (reduces tokens) │ │ │
└──────────────┘ └─────────────────────┘ └───────────┘
This plugin sits between your input and the LLM. It compresses the text while preserving meaning, so the LLM receives fewer tokens but understands the same thing. The output from the compression node connects directly to your LLM node's input.
text parameter| Parameter | Description |
|---|---|
text | The text to compress (required) |
aggressiveness | Compression level: 0.2 (light), 0.5 (moderate), 0.7 (aggressive) |
protect_json | Keep JSON structures intact (default: true) |
| Level | Token Reduction | Best For |
|---|---|---|
| Light (0.2) | 10-20% | When quality is critical |
| Moderate (0.5) | 25-40% | General use |
| Aggressive (0.7) | 40-60% | Maximum savings |
MIT License