# Odpowiedzi z cytowaniami źródeł

EN: **Answers with source citations (attributed generation)** · id `ragcitations` · aliases: citations, attributed generation, grounded citations, source attribution, cytowanie źródeł, przypisy w odpowiedziach

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) › Odpowiedzi z cytowaniami źródeł

## Description

- PL: Generowanie odpowiedzi, w którym twierdzenia są powiązane z konkretnymi fragmentami dostarczonych źródeł, z oceną, czy cytat rzeczywiście je popiera.
- EN: Answer generation in which claims are linked to specific passages of supplied sources, with checks on whether the citation actually supports them.

## In one sentence

- PL: Asystent przy każdym stwierdzeniu wskazuje, z którego dokumentu i fragmentu pochodzi, żeby dało się to sprawdzić.
- EN: The assistant marks each statement with the document and passage it came from, so it can be checked.

## Problem it solves

- PL: Odpowiedź brzmi pewnie, ale nie wiadomo, czy to fakt z dokumentu, czy wymysł modelu.
- EN: An answer sounds confident, but you cannot tell whether it is a fact from a document or something the model made up.

## What it does

- PL: Działa jak przypisy w pracy dyplomowej: każde zdanie ma numerek prowadzący do konkretnej strony źródła.
- EN: It works like footnotes in a thesis: each sentence carries a number leading to a specific page of the source.

## Everyday example

- PL: Pytasz o warunki zwrotu w umowie, a w odpowiedzi klikasz numer przy zdaniu i widzisz podświetlony akapit umowy.
- EN: You ask about return terms in a contract, click the number next to a sentence and see the contract paragraph highlighted.

## This concerns you if you…

- PL: musisz sprawdzać, skąd asystent wziął informację
- PL: przygotowujesz dokumenty, w których błąd ma poważne skutki
- PL: budujesz wyszukiwarkę odpowiedzi na firmowych dokumentach
- EN: need to check where an assistant got its information
- EN: prepare documents where an error has serious consequences
- EN: build an answer search over company documents

## Keywords

ALCE · citation precision · citation recall · attributed QA · NLI-based verification · AIS · grounded generation

## How it works

- PL: Fragmenty źródeł trafiają do kontekstu z identyfikatorami, a model jest instruowany, by wiązać twierdzenia z odpowiednimi fragmentami. Jakość cytowań mierzy się kompletnością wsparcia twierdzeń i odsetkiem trafnych przypisów. ALCE automatyzuje te oceny modelem wnioskowania tekstowego, ale wynik nadal wymaga ostrożnej interpretacji.
- EN: Source passages enter context with identifiers, and the model is instructed to link claims to the relevant passages. Citation quality is measured by how completely passages support claims and by the share of relevant citations. ALCE automates these judgements with a textual-entailment model, but the result still needs cautious interpretation.

## Limits

- PL: Obecność przypisu nie dowodzi, że źródło popiera zdanie; modele często cytują fragmenty tylko luźno związane. Cytowania nie naprawią błędnego lub nieaktualnego źródła, a weryfikacja automatyczna sama może się mylić.
- EN: A footnote's presence does not prove the source supports the sentence; models often cite only loosely related passages. Citations cannot fix a wrong or outdated source, and automatic verification can itself be wrong.

## Key terms

- PL: **atrybucja**: Przypisanie twierdzenia konkretnemu źródłu, z którego wynika.
- PL: **citation recall**: Odsetek zdań odpowiedzi w pełni popartych przez podane cytaty.
- PL: **NLI**: Model oceniający, czy jeden tekst logicznie wynika z drugiego.
- EN: **attribution**: Linking a claim to the specific source it follows from.
- EN: **citation recall**: Share of answer sentences fully supported by the given citations.
- EN: **NLI**: A model judging whether one text logically follows from another.

## Know first

- [Wierność odpowiedzi wobec znalezionych źródeł (RAG) (RAG faithfulness and answer relevance metrics)](https://aiatlasgraph.com/t/ragfaithfulness.md)

## Sources

- [Enabling Large Language Models to Generate Text with Citations](<https://arxiv.org/abs/2305.14627>) `gao-alce-2023` · by Tianyu Gao, Howard Yen, Jiatong Yu, Danqi Chen

---

AI Atlas revision 124 (2026-10-31) · HTML: https://aiatlasgraph.com/t/ragcitations · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-31
