# Wyszukiwanie informacji prawnej

EN: **Legal information retrieval and research** · id `legalsearch` · aliases: legal information retrieval, legal research, legal IR, AI legal research, wyszukiwanie prawnicze, kwerenda prawna

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

## Description

- PL: Wyszukiwanie i ranking orzeczeń oraz przepisów dla zapytania lub opisu sprawy, coraz częściej połączone z generowaniem odpowiedzi z cytatami (legal RAG).
- EN: Retrieving and ranking rulings and statutes for a query or case description, increasingly combined with answer generation with citations (legal RAG).

## In one sentence

- PL: Szukanie przepisów i wyroków, które pasują do konkretnej sprawy, z pomocą programu rozumiejącego pytanie zadane zwykłymi słowami.
- EN: Finding the statutes and rulings that fit a specific case, with software that understands a question asked in plain words.

## Problem it solves

- PL: Odpowiednie orzeczenie może leżeć wśród milionów innych, a samo wpisanie słów kluczowych gubi sprawy opisane innym językiem.
- EN: The right ruling may sit among millions of others, and typing keywords misses cases described in different words.

## What it does

- PL: Jak bibliotekarz z wydziału prawa, który pyta, o co chodzi w sprawie, i przynosi kilka najbliższych orzeczeń z zakładkami.
- EN: Like a law-school librarian who asks what the case is about and brings back the few closest rulings with bookmarks.

## Everyday example

- PL: Aplikantka opisuje stan faktyczny sporu o zalanie mieszkania i dostaje listę podobnych wyroków wraz z fragmentami uzasadnień.
- EN: A trainee lawyer describes the facts of a dispute over a flooded flat and gets a list of similar rulings with excerpts of the reasoning.

## This concerns you if you…

- PL: przygotowujesz pismo i szukasz orzecznictwa
- PL: chcesz sprawdzić, co mówi przepis w twojej sprawie
- EN: prepare a filing and look for case law
- EN: want to check what a law says about your case

## Keywords

legal case retrieval · COLIEE · BM25 · dense retrieval · legal RAG · citation grounding · LeCaRD · statute retrieval · query by document

## How it works

- PL: Zapytaniem bywa całe orzeczenie albo opis faktów, więc stosuje się wyszukiwanie leksykalne i gęste, dzielenie długich dokumentów i reranking. Systemy RAG pobierają fragmenty z bazy prawnej i każą modelowi odpowiadać z odwołaniem do nich. Ocenia się trafność rankingu i wierność cytatów.
- EN: The query is often a whole ruling or a description of facts, so lexical and dense retrieval, splitting of long documents and reranking are used. RAG systems pull passages from a legal database and make the model answer with references to them. Ranking relevance and citation faithfulness are evaluated.

## Limits

- PL: Trafność zależy od pojęcia „istotności” w danej jurysdykcji, a publicznych zbiorów testowych jest mało. Wyszukiwanie nie usuwa halucynacji: model może źle streścić prawdziwe orzeczenie. Baza musi być aktualna, bo przepisy i linia orzecznicza się zmieniają.
- EN: Relevance depends on what counts as pertinent in a jurisdiction, and public test collections are scarce. Retrieval does not remove hallucinations: a model can misstate a real ruling. The database must stay current, as statutes and case law change.

## Key terms

- PL: **orzecznictwo**: Zbiór wyroków sądów, na który powołują się prawnicy.
- PL: **legal RAG**: Odpowiedź modelu oparta na fragmentach pobranych z bazy prawnej.
- PL: **stan faktyczny**: Opis tego, co wydarzyło się w sprawie, bez oceny prawnej.
- EN: **case law**: The body of court rulings lawyers rely on.
- EN: **legal RAG**: A model's answer grounded in passages retrieved from a legal database.
- EN: **statement of facts**: A description of what happened in a case, without legal assessment.

## Know first

- [Wyszukiwanie hybrydowe (Hybrid retrieval)](https://aiatlasgraph.com/t/hybridsearch.md)
- [Reranking i fuzja wyników (Reranking and result fusion)](https://aiatlasgraph.com/t/reranking.md)

## Subtopics (4 direct, 4 in total)

- [Agenci badań prawnych (Agentic legal research)](https://aiatlasgraph.com/t/legalresearchagents.md): Multi-step agent systems that plan queries, use search tools over legal databases and produce cited answers, often with a separate verifier.
- [Odpowiedzi na pytania z przepisów (Statute retrieval and legal entailment)](https://aiatlasgraph.com/t/statuteqa.md): Retrieving the statute articles relevant to a question and yes/no inference on whether the question follows from those articles.
- [Wyszukiwanie podobnych orzeczeń (Legal case retrieval (prior case retrieval))](https://aiatlasgraph.com/t/caseretrieval.md): The task of finding, in a large database of rulings, cases relevant to a query that is a case description or a whole document.
- [Zmyślone orzeczenia i weryfikacja cytowań (Legal hallucinations and citation verification)](https://aiatlasgraph.com/t/citationcheck.md): Studying and detecting invented or misquoted legal authorities in model outputs, and automated verification of citations in filings.

## 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
- [Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools](<https://arxiv.org/abs/2405.20362>) `magesh-legal-rag-hallucination-2024` · by Varun Magesh, Faiz Surani, Matthew Dahl, Mirac Suzgun, Christopher D. Manning, Daniel E. Ho

---

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