返回顶部
C

Compress

Compress text semantically with iterative validation, anchor checksums, and verified information preservation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
824
下载量
2
收藏
概述
安装方式
版本历史

Compress

## ⚠️ Important Limitations **This is SEMANTIC compression, not bit-perfect lossless.** - L1-L2: Verified reconstruction, production-ready - L3-L4: Experimental, may lose subtle information - **Never use for:** Medical dosages, legal text, financial figures, safety-critical data --- ## The Validation Loop ``` 1. Compress original O → compressed C 2. Extract anchors from O (entities, numbers, dates) 3. Reconstruct C → R (without seeing O) 4. Verify: anchors match + semantic diff 5. If mismatch → refine C with missing info 6. Repeat until validated (max 3 iterations) ``` **Convergence = verified. No convergence after 3 rounds = level too aggressive.** --- ## Quick Reference | Task | Load | |------|------| | Compression levels (L1-L4) | `levels.md` | | Validation algorithm details | `validation.md` | | Format-specific strategies | `formats.md` | | Token budgeting and metrics | `metrics.md` | --- ## Compression Levels | Level | Ratio | Reliability | Use Case | |-------|-------|-------------|----------| | L1 | ~0.8x | ✅ High | Production, human-readable | | L2 | ~0.5x | ✅ Good | System prompts, repeated use | | L3 | ~0.3x | ⚠️ Moderate | Experimental, review output | | L4 | ~0.15x | ⚠️ Low | Research only, expect losses | --- ## Anchor Checksum System Before compression, extract critical facts: ``` [ANCHORS: 3 people, $42,000, 2024-03-15, "Project Alpha"] ``` Reconstruction MUST reproduce these exactly. If anchors mismatch → compression failed. --- ## Core Rules 1. **Always validate** — Never trust compression without reconstruction test 2. **Use anchors** — Extract numbers, names, dates before compressing 3. **Cap at L2 for production** — L3-L4 are experimental 4. **Report confidence** — Include iteration count and anchor match rate 5. **Independent verification** — Consider different model for reconstruction --- ## Cost-Benefit Reality Each compression costs 3-4 LLM calls. Break-even calculation: ``` break_even_retrievals = compression_tokens / saved_tokens_per_use ``` **Only cost-effective if:** You'll retrieve the compressed content 6-8+ times. For one-time use → just use the original text. --- ## Before Compressing - [ ] Content type is NOT safety-critical - [ ] Target level chosen (L1-L2 recommended) - [ ] Anchors identified (numbers, names, dates) - [ ] ROI makes sense (multiple retrievals expected)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 compress-1776419982 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 compress-1776419982 技能

通过命令行安装

skillhub install compress-1776419982

下载 Zip 包

⬇ 下载 Compress v1.0.0

文件大小: 7.2 KB | 发布时间: 2026-4-17 18:16

v1.0.0 最新 2026-4-17 18:16
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部