# Reranking i fuzja wyników

EN: **Reranking and result fusion** · id `reranking`

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Aplikacje LLM i agenci](https://aiatlasgraph.com/t/applications.md) › [Wyszukiwanie i RAG](https://aiatlasgraph.com/t/retrieval.md) › Reranking i fuzja wyników

## Description

- PL: Ponowne ułożenie znalezionych fragmentów przed podaniem ich modelowi, dla trafności i różnorodności.
- EN: Re-ordering retrieved chunks before they reach the model, for relevance and diversity.

## In one sentence

- PL: To ponowne porządkowanie znalezionych treści, żeby wybrać te najlepiej pasujące do pytania.
- EN: This reorders retrieved material to choose what fits your question best.

## Problem it solves

- PL: Pierwsze wyniki wyszukiwania wyglądają podobnie do pytania, ale nie zawierają informacji potrzebnych do odpowiedzi.
- EN: The first search results look related to your question but lack the information needed to answer it.

## What it does

- PL: Każdy znaleziony fragment ocenia względem całego pytania, a wyniki różnych wyszukiwań może połączyć we wspólną listę.
- EN: It checks each retrieved passage against the full question and can combine results from several searches into one list.

## Everyday example

- PL: Pytasz o wyjątki od zasad zwrotu, a asystent wybiera fragment o wyjątkach spośród wielu podobnych zapisów regulaminu.
- EN: You ask about exceptions to a returns policy, and the assistant selects the exceptions passage from several similar policy sections.

## This concerns you if you…

- PL: otrzymujesz wyniki związane z tematem, ale bez potrzebnej odpowiedzi
- PL: chcesz wybrać przydatne fragmenty z wielu znalezionych dokumentów
- EN: get related results that do not answer your question
- EN: want useful passages selected from many retrieved documents

## Keywords

cross-encoder · Reciprocal Rank Fusion · RAG-Fusion · Maximal Marginal Relevance · BGE reranker · nDCG@k

## How it works

- PL: Reranker ocenia pary zapytanie–fragment w ograniczonym zbiorze kandydatów i ustala nową kolejność wyników. Fuzja rankingów łączy listy z kilku wyszukiwań na podstawie pozycji lub ocen, a dodatkowa selekcja może ograniczać powtarzalność kontekstu.
- EN: A reranker scores query–passage pairs within a limited candidate set and reorders results. Rank fusion combines lists from several searches using positions or scores, while additional selection can reduce repeated context.

## Limits

- PL: Reranker nie odzyska dokumentu pominiętego przy wyborze kandydatów. Dokładniejsze ocenianie zwiększa opóźnienie; trafność i różnorodność wyników mogą wymagać odmiennych kryteriów selekcji.
- EN: A reranker cannot recover a document excluded from candidate selection. More detailed scoring increases latency; relevance and result diversity may require different selection criteria.

## Key terms

- PL: **cross-encoder**: Model wspólnie oceniający tekst zapytania i kandydata.
- PL: **zbiór kandydatów**: Wstępnie znalezione wyniki przekazane do dokładniejszej oceny.
- PL: **Reciprocal Rank Fusion**: Łączenie list przez sumowanie ocen zależnych od pozycji wyniku.
- EN: **cross-encoder**: A model jointly evaluating query text and a candidate.
- EN: **candidate set**: Initially retrieved results passed on for more detailed evaluation.
- EN: **Reciprocal Rank Fusion**: Combining lists by summing scores based on each result's rank.

## Know first

- [Embeddingi zdań i dokumentów (modele embeddingowe) (Sentence and document embeddings (embedding models))](https://aiatlasgraph.com/t/textembeddings.md)
- [Metryki klasyfikacji i regresji (Classification and regression metrics)](https://aiatlasgraph.com/t/classmetrics.md)

## Examples

- PL: reranker · RAG-fusion · klasyfikacja fragmentów
- EN: reranker · RAG-fusion · chunk classification

## Related topics

Untyped, symmetric "see also" links.

- [Embeddingi zdań i dokumentów (modele embeddingowe) (Sentence and document embeddings (embedding models))](https://aiatlasgraph.com/t/textembeddings.md)
- [Generowanie kandydatów, scoring i re-ranking (Candidate generation, scoring and re-ranking)](https://aiatlasgraph.com/t/recpipeline.md)
- [Miary jakości wyszukiwania (recall@k, MRR, nDCG) (Retrieval quality metrics (recall@k, MRR, nDCG))](https://aiatlasgraph.com/t/retrievalmetrics.md)
- [Uczenie rankingu (learning to rank) (Learning to rank)](https://aiatlasgraph.com/t/learningtorank.md)

## Sources

- [LLM Course (Maxime Labonne)](<https://github.com/mlabonne/llm-course>) `mlabonne-llm-course` · by Maxime Labonne

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/reranking · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
