Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

context-compression

/context-compression

Redukuje pobrane materiały do tego, czego potrzebuje model, przez filtrowanie, ekstrakcję i streszczanie, zanim trafią do promptu.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Redukuje pobrane materiały do tego, czego potrzebuje model, przez filtrowanie, ekstrakcję i streszczanie, zanim trafią do promptu.

Oryginalny opis (EN)

Reduce retrieved material to what the model needs, through filtering, extraction, and summarisation, before it reaches the prompt. Use when retrieved context is large, mostly irrelevant, or crowding out reasoning.

Jak działa

  1. Method
  2. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 36 linii, 231 słów
Podgląd SKILL.md
---
name: context-compression
description: Reduce retrieved material to what the model needs, through filtering, extraction, and summarisation, before it reaches the prompt. Use when retrieved context is large, mostly irrelevant, or crowding out reasoning.
---

# Context compression

Retrieval returns passages that are relevant to the query; much of each
passage is not relevant to the answer. Compression removes the excess
before it consumes context, which improves both cost and the model's
attention on what matters.

## Method

1. **Filter before compressing.** Dropping a passage that should not
   have been retrieved is cheaper and safer than summarising it (see
   retrieval-reranking).
2. **Extract the relevant spans.** Pulling the sentences that bear on
   the question preserves exact wording, which matters for citation and
   for faithfulness (see citation-grounding).
3. **Prefer extraction to summarisation.** Summarising introduces a
   paraphrase step that can distort, while extraction cannot invent.
4. **Compress per passage, not across them.** Merging passages loses
   provenance and blends sources that should stay distinguishable.
5. **Keep the structure that carries meaning.** Headings, dates, and
   identifiers are small and disproportionately useful for the model's
   reasoning.
6. **Budget explicitly.** Decide how much context the answer step gets
   and compress to fit, rather than sending everything and letting the
   window truncate arbitrarily (see context-window-management).
7. **Measure the effect on answer quality.** Compression that improves
   cost and degrades faithfulness is not a win (see rag-evaluation).

## Boundaries

Compression trades completeness for focus, and an aggressive filter can
remove the passage that mattered. Every compression step is itself a
model call with cost and latency. For small retrieved sets the overhead
usually exceeds the benefit.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
fabioc-aloha/Alex_Skill_Mall100MIT
yeaight7/agent-powerups100Apache-2.0
seb1n/awesome-ai-agent-skills100MIT
viktorbezdek/skillstack100MIT
bojieli/ai-agent-book90Apache-2.0

Migawka bazy z 28.10.2026 · wersja paczki 4ce3ead04ef1 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100context-optimization
    Optymalizuje kompletny pakiet kandydatów na kontekst przez deduplikację, filtrowanie, porządkowanie i alokację budżetu tokenów, gdy zebrany materiał jest zaszumiony lub zbyt obszerny.
  • 100create-atomic-context-provider
    Tworzy BaseDynamicContextProvider wstrzykiwany do promptu systemowego agenta przy każdym run(): bieżący czas, tożsamość użytkownika, dokumenty RAG, stan sesji.
  • 100prompt-and-context-engineering
    Pomaga układać prompty systemowe, zarządzać budżetem okna kontekstu i decydować, co umieścić w prompcie systemowym, opisie narzędzia, pobranej treści lub historii rozmowy agenta.
  • 100token-reducer
    Zmniejsza kontekst przez streszczanie, wyszukiwanie pełnotekstowe z osadzeniami i ponowne sortowanie fragmentów przed pracą nad wdrożeniem.
  • 100tavily-dynamic-search
    Wykonuje programowe wyszukiwanie Tavily z izolacją kontekstu: filtruje, deduplikuje i selekcjonuje duże wyniki wyszukiwania lub ekstrakcji, zanim trafią do kontekstu modelu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.