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

rag-pipeline

/rag-pipeline

Projektuje potok retrieval-augmented generation, który odpowiada na podstawie źródeł i zasługuje na zaufanie: chunking, embeddingi, wyszukiwanie, składanie kontekstu i ugruntowanie.

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

Projektuje potok retrieval-augmented generation, który odpowiada na podstawie źródeł i zasługuje na zaufanie: chunking, embeddingi, wyszukiwanie, składanie kontekstu i ugruntowanie.

Oryginalny opis (EN)

Design a retrieval-augmented generation pipeline that answers from sources and can be trusted. Use when building or debugging RAG: chunking, embedding, retrieval, context assembly, and grounding.

Jak działa

  1. Method
  2. Common failures
  3. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 56 linii, 470 słów
Podgląd SKILL.md
---
name: rag-pipeline
description: "Design a retrieval-augmented generation pipeline that answers from sources and can be trusted. Use when building or debugging RAG: chunking, embedding, retrieval, context assembly, and grounding."
---

# RAG pipeline

Retrieval-augmented generation is only as good as what it retrieves. A wrong
or missing chunk produces a confident wrong answer, so build the retrieval
half with the same rigor as the generation half, and make every answer
traceable to a source.

## Method

1. **Decide what a good answer needs before indexing anything.** The
   questions the system must answer determine the chunk size, the metadata,
   and the retrieval strategy. A pipeline tuned for "find the one relevant
   sentence" differs from one tuned for "summarize this whole section".
2. **Chunk on meaning, not on character count.** Split at natural boundaries
   (headings, paragraphs, function definitions), keep chunks self-contained
   enough to stand alone, and carry metadata with each: source document,
   heading path, page or line. Overlap adjacent chunks slightly so a fact
   split across a boundary survives. Oversized chunks bury the signal;
   undersized chunks lose the context that makes them meaningful.
3. **Retrieve hybrid, not one-signal.** Keyword search (BM25 or full-text)
   catches exact terms and names; vector search catches meaning and
   paraphrase. Blend both, because each misses what the other finds. Retrieve
   more than you need, then rerank down to the best few.
4. **Pack the context to the model's real window.** Fit the top chunks to the
   available tokens after the system prompt, history, and reserved answer
   room, best first. When it does not all fit, drop the lowest-ranked chunks
   rather than truncating one mid-thought.
5. **Ground the generation and demand citations.** Instruct the model to
   answer only from the provided context, to say "the sources do not cover
   this" when they do not, and to cite the source for each claim. An answer
   that cannot point to a chunk is a hallucination with good manners.
6. **Evaluate retrieval and generation separately.** Most RAG failures are
   retrieval failures wearing a generation costume. Measure whether the right
   chunk was retrieved (recall on a labeled question set) apart from whether
   the answer was faithful to it. You cannot fix what you cannot localize.

## Common failures

- The answer is confidently wrong: the right chunk was never retrieved.
  Fix retrieval (chunking, hybrid search, reranking), not the prompt.
- The answer ignores the context: weak grounding instruction, or the context
  arrived above the model's attention. Strengthen the instruction, shorten
  the context.
- Citations are invented: the model was not given stable source ids to cite.
  Label each chunk and require the label.
- Fresh data is missing: the index is stale. Re-index on a schedule that
  matches how fast the sources change.

## Boundaries

RAG adds knowledge, not reasoning. If the task needs multi-step logic over the
retrieved facts, that is a generation and prompting problem on top of
retrieval, not more retrieval. And no pipeline rescues sources that do not
contain the answer; say so rather than generating around the gap.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
brightdata/skills100MIT
param087/agent-ml-skills100MIT
bojieli/ai-agent-book90Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki 41e2c2e17aa5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90rag-systems
    Projektuje potoki retrieval-augmented generation: chunking, embeddingi, wyszukiwanie, reranking, ugruntowanie i ewaluację, przy budowie Q&A po dokumentach, agentów wyszukiwania kodu i baz wiedzy.
  • 90rag-implementation
    Opisuje wzorce Retrieval-Augmented Generation: chunking, embeddingi, magazyny wektorowe i optymalizację wyszukiwania.
  • 90rag
    Projektuje i przegląda konfigurację RAG: podział na fragmenty, embeddingi, parametry wyszukiwania, osadzenie odpowiedzi w źródłach i filtry dostępu.
  • 100rag-engineer
    Projektuje systemy RAG dla aplikacji LLM: dobiera modele embeddingów i bazy wektorowe, ustawia chunking i optymalizuje wyszukiwanie.
  • 100rag-engineer
    Projektuje systemy RAG dla aplikacji LLM: dobiera modele embeddingów i bazy wektorowe, ustawia chunking i optymalizuje wyszukiwanie.
  • 100rag
    Pomaga budować RAG: chunking, embeddingi, wyszukiwanie hybrydowe, reranking, cytowanie źródeł oraz rozróżnienie awarii wyszukiwania od awarii generowania.

Uwagi i zgłoszenia

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