Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

1.8 KB
Raw Blame
{
  "config": {
    "chunk_words": 350,
    "device": "auto",
    "enable_ccr": false,
    "model_id": "chopratejas/kompress-v2-base",
    "score_threshold": 0.5
  },
  "input": "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. Meanwhile the diligent engineer reviews the compression output carefully to ensure the most salient tokens survive while redundant filler is discarded without losing the essential meaning. ",
  "input_sha256": "717ac5c1b5a49c4ebcccc7d177c54b21d4f249c4b1e7e1f8696a69eab07b5f9b",
  "output": {
    "cache_key": null,
    "compressed": "quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. Meanwhile diligent engineer reviews compression output carefully ensure most salient tokens survive while redundant filler is discarded without losing essential meaning.",
    "compressed_tokens": 63,
    "compression_ratio": 0.7875,
    "model_used": "chopratejas/kompress-v2-base",
    "original": "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. Meanwhile the diligent engineer reviews the compression output carefully to ensure the most salient tokens survive while redundant filler is discarded without losing the essential meaning. ",
    "original_tokens": 80
  },
  "recorded_at": "2026-06-18T23:18:24.191529+00:00",
  "transform": "kompress"
}