Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

chain-of-density

bởi killerapp

PDF & Documents
1.2kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Iteratively densify text summaries using Chain-of-Density technique.

Mô tả

Kỹ năng này làm gì

Chain-of-Density (CoD) is an iterative summarization method from a 2023 research paper. It compresses text through 5 passes, each identifying missing entities from the source and injecting them into the summary while holding word count constant. The result is a fixed-length summary that grows progressively more specific with each iteration.

Unlike one-shot summarization, CoD forces entity accumulation across iterations, so the final summary contains more named specifics at the same length rather than generic paraphrase.

Khi nào nên dùng

  • Condensing verbose API documentation into a fixed-length reference
  • Compressing long requirements documents for executive review
  • Summarizing research papers while preserving key terminology
  • Reducing overlong agent skill files to meet length limits
  • Creating dense briefings from detailed incident reports

Quy trình ví dụ

ĐẦU VÀO

User asks: Summarize this 600-word architecture document in 80 words

AGENT
  1. 1

    Pass source text to cod-iteration agent as iteration 1 to produce a sparse base summary

  2. 2

    Parse the Missing_Entities line and Denser_Summary from the response

  3. 3

    Pass both the previous summary and original source to cod-iteration for iterations 2 through 5

  4. 4

    Track accumulated entities across all iterations

  5. 5

    Return the final dense summary and optionally the full iteration history

ĐẦU RA

An 80-word summary containing 9+ specific entities from the source, with optional YAML history showing entity accumulation per pass

Cài đặt

clawhub install killerapp/chain-of-density

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết