# Wyszukiwanie podobnych orzeczeń

EN: **Legal case retrieval (prior case retrieval)** · id `caseretrieval` · aliases: legal case retrieval, LCR, prior case retrieval, case law retrieval, precedent retrieval, wyszukiwanie orzeczeń, wyszukiwanie precedensów

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [AI w prawie](https://aiatlasgraph.com/t/legalai.md) › [Wyszukiwanie informacji prawnej](https://aiatlasgraph.com/t/legalsearch.md) › Wyszukiwanie podobnych orzeczeń

## Description

- PL: Zadanie znajdowania w dużej bazie orzeczeń spraw istotnych dla zapytania będącego opisem sprawy lub całym dokumentem.
- EN: The task of finding, in a large database of rulings, cases relevant to a query that is a case description or a whole document.

## In one sentence

- PL: Program dostaje opis sprawy albo cały wyrok i znajduje wcześniejsze orzeczenia, które dotyczyły podobnej sytuacji.
- EN: Software takes a case description or a whole ruling and finds earlier decisions that dealt with a similar situation.

## Problem it solves

- PL: Podobne sprawy rzadko używają tych samych słów, więc prawnik godzinami przekopuje bazy, żeby niczego ważnego nie przeoczyć.
- EN: Similar cases rarely use the same words, so lawyers dig through databases for hours so as not to miss anything important.

## What it does

- PL: Porównuje sens sporu, a nie tylko słowa: kto, z kim, o co i na jakiej podstawie, tak jak robi to doświadczony sędzia.
- EN: It compares what the dispute is about, not just its words: who, against whom, over what and on what basis, as an experienced judge would.

## Everyday example

- PL: Kancelaria wkleja wyrok pierwszej instancji i w kilka sekund widzi dziesięć wcześniejszych spraw, na które warto powołać się w apelacji.
- EN: A law firm pastes in a first-instance judgment and within seconds sees ten earlier cases worth citing in the appeal.

## This concerns you if you…

- PL: piszesz apelację lub opinię prawną
- PL: budujesz wyszukiwarkę dla bazy orzeczeń
- EN: write an appeal or legal opinion
- EN: build a search engine for a database of rulings

## Keywords

COLIEE Task 1 · LeCaRD · LeCaRDv2 · BM25 · SAILER · cross-encoder reranking · legal embeddings · citation-based relevance

## How it works

- PL: Klasycznie BM25 z rozszerzaniem zapytań; nowsze metody kodują fragmenty orzeczeń modelami osadzeń dostrojonymi na tekstach prawnych, łączą wyniki z wielu akapitów i stosują reranking modelami cross-encoder lub LLM. Konkursy oceniają, czy system znajduje sprawy, które sąd faktycznie przywołał.
- EN: Classically BM25 with query expansion; newer methods encode passages of rulings with embedding models tuned on legal text, aggregate scores across paragraphs and rerank with cross-encoders or LLMs. Shared tasks check whether a system finds the cases the court actually cited.

## Limits

- PL: Orzeczenia są bardzo długie, a „podobieństwo” prawne zależy od kwestii prawnej, nie od opisu zdarzeń. Publiczne zbiory pochodzą z nielicznych krajów, a etykiety oparte na cytowaniach pomijają sprawy trafne, lecz nieprzywołane.
- EN: Rulings are very long, and legal similarity depends on the legal issue, not on the narrative. Public datasets come from few countries, and citation-based labels miss relevant but uncited cases.

## Key terms

- PL: **query by document**: Zapytanie, którym jest cały dokument, a nie kilka słów.
- PL: **noticed case**: Sprawa, którą sąd przywołał w uzasadnieniu; służy jako etykieta trafności.
- EN: **query by document**: A query that is a whole document rather than a few words.
- EN: **noticed case**: A case the court cited in its reasoning; used as a relevance label.

## Know first

- [Embeddingi zdań i dokumentów (modele embeddingowe) (Sentence and document embeddings (embedding models))](https://aiatlasgraph.com/t/textembeddings.md)
- [Reranking i fuzja wyników (Reranking and result fusion)](https://aiatlasgraph.com/t/reranking.md)

## Sources

- [Legal Case Retrieval: A Survey of the State of the Art](<https://aclanthology.org/2024.acl-long.350/>) `feng-lcr-survey-2024` · by Yi Feng, Chuanyi Li, Vincent Ng
- [Case law retrieval: problems, methods, challenges and evaluations in the last 20 years](<https://arxiv.org/abs/2202.07209>) `locke-zuccon-caselaw-2022` · by Daniel Locke, Guido Zuccon
- [Summary of the Competition on Legal Information Extraction/Entailment (COLIEE) 2023](<https://sites.ualberta.ca/~rabelo/COLIEE2023/COLIEE2023_summary.pdf>) `coliee-2023-summary` · by Randy Goebel, Yoshinobu Kano, Mi-Young Kim, Juliano Rabelo, Ken Satoh, Masaharu Yoshioka

---

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