Arailym-tleubayeva/KazakhLawCorpus
Current Release Current version contains three datasets. data/ ├── laws_metadata.csv ├── law_history.csv └── law_references.csv Dataset Description 1. laws_metadata.csv Contains metadata describing legal acts. Current size: 223,245 legal acts Main fields include: Column Description source_id Internal database identifier law_id Stable legal act identifier title Original title title_kk Kazakh title title_ru Russian title… See the full description on the dataset page: https://huggingface.co/datasets/Arailym-tleubayeva/KazakhLawCorpus.
KazakhLawCorpus
Overview
KazakhLawCorpus is an open research dataset containing structured legislative information from the Republic of Kazakhstan.
The corpus is designed for:
- Legal Retrieval-Augmented Generation (Legal RAG)
- Information Retrieval
- Semantic Search
- Question Answering
- Legal Knowledge Graph construction
- Citation Graph analysis
- Temporal Legal Analysis
- Legal NLP
- Large Language Models (LLMs)
The dataset currently contains metadata, document history, and legal citation relationships extracted from a PostgreSQL database.
Current Release
Current version contains three datasets.
data/
├── laws_metadata.csv
├── law_history.csv
└── law_references.csvDataset Description
1. laws_metadata.csv
Contains metadata describing legal acts.
Current size:
- 223,245 legal acts
Main fields include:
2. law_history.csv
Contains document history describing relationships between document revisions.
Current size:
- 169,018 history records
Main fields:
This dataset enables reconstruction of legislative evolution over time.
3. law_references.csv
Contains citation relationships between legal documents.
Main fields:
This dataset can be used to build a Legal Citation Graph.
Intended Applications
The corpus is intended for research in:
- Legal RAG
- Legal Search Engines
- Hybrid Retrieval
- BM25 Retrieval
- Dense Retrieval
- Graph Retrieval
- Legal Citation Analysis
- Temporal Legal Analysis
- Knowledge Graph Construction
- Legal Question Answering
- LLM Fine-tuning
- Benchmark Development
Future Releases
Future versions of KazakhLawCorpus will include:
- law_versions
- law_articles
- law_sections
- law_chunks
- law_embeddings
- legal citation graph
- temporal graph
- benchmark datasets for Legal RAG
Source
The dataset is derived from publicly available legislation of the Republic of Kazakhstan.
The exported database used for this research was provided by:
NUBA Solutions LLP (ТОО "NUBA Solutions")
The original legal documents remain available through the official Adilet legal information system.
Acknowledgements
The authors thank NUBA Solutions LLP for providing the exported database used to prepare this research corpus.
License
This repository is distributed under the Apache 2.0 License.
Users are responsible for ensuring that any downstream use of the original legal documents complies with the applicable terms governing the official legal sources.
Citation
If you use this dataset in academic research, please cite:
Tleubayeva, A., Mansurova, A., Shomanov, A., Makhambetova, Z., & Boluk, P. S. (2026). KazakhLawCorpus: A Large-Scale Metadata Corpus for Kazakh Legislation. Data, 11(9), 217. https://doi.org/10.3390/data11090217
Contact
Arailym Tleubayeva
Astana IT University
Hugging Face: https://huggingface.co/Arailym-tleubayeva
