context-compression
/context-compression
Redukuje pobrane materiały do tego, czego potrzebuje model, przez filtrowanie, ekstrakcję i streszczanie, zanim trafią do promptu.
- Autor
- Amey-Thakur ↗
- Repozytorium
- AI-SKILLS ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.09.2026, bez odwołań do wycofanych modeli i API.
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
- Method
- Boundaries
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · Amey-Thakur/AI-SKILLS | 90 | MIT |
| fabioc-aloha/Alex_Skill_Mall | 100 | MIT |
| yeaight7/agent-powerups | 100 | Apache-2.0 |
| seb1n/awesome-ai-agent-skills | 100 | MIT |
| viktorbezdek/skillstack | 100 | MIT |
| bojieli/ai-agent-book | 90 | Apache-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.