ipfs_angola_laws_ir
收藏资源简介:
该数据集是安哥拉法律的信息检索(IR)研究快照,基于`endomorphosis/ipfs_angola_laws`的特定修订版打包而成,采用CID键控的稀疏图RAG(GraphRAG)布局。数据集包含法律条款的语料库、BM25倒排索引、向量嵌入(384维,使用`thenlper/gte-small`模型)以及属性图结构。主要键为`entry_cid`(CIDv1原始sha2-256)。统计信息:0部法律(但包含17212个条款/规范文档)、76668个BM25词项、1899002个BM25倒排记录、18654个图节点、217816条图边。规范字段包括:entry_cid、law_cid、record_type、jurisdiction、language、instrument_id、instrument_title、article_number、article_title、title、body、source_url、snapshot_date、coverage、license、collector、source_dataset、source_revision。索引布局采用Zstandard压缩的Parquet分片,包含BM25关键词索引、向量块索引、语料块索引、图节点/边以及入/出邻接索引。BM25参数为Okapi k1=1.2, b=0.75,标题权重5,正文权重1。图节点包括每个条目节点和方面节点(如jurisdiction、language等),边包括BM25邻居边(k=8)和结构边(如ARTICLE_OF)。该数据集适用于文本检索、图检索、BM25和向量混合检索等研究任务。注意:此数据集仅为研究用途,不构成法律建议,官方公报或权威来源应以安哥拉官方版本为准。
This dataset is a snapshot of information retrieval (IR) research for Angolan laws, packaged from a specific revision of `endomorphosis/ipfs_angola_laws` using a CID-keyed sparse graph RAG (GraphRAG) layout. It contains a corpus of legal articles, BM25 inverted index, vector embeddings (384-dimensional, using the `thenlper/gte-small` model), and property graph structure. The primary key is `entry_cid` (CIDv1 raw sha2-256). Statistics: 0 laws (but includes 17,212 articles/normative documents), 76,668 BM25 terms, 1,899,002 BM25 inverted records, 18,654 graph nodes, and 217,816 graph edges. Schema fields include: entry_cid, law_cid, record_type, jurisdiction, language, instrument_id, instrument_title, article_number, article_title, title, body, source_url, snapshot_date, coverage, license, collector, source_dataset, source_revision. Index layout uses Zstandard-compressed Parquet shards, including BM25 keyword index, vector chunk index, corpus chunk index, graph nodes/edges, and inbound/outbound adjacency indexes. BM25 parameters are Okapi k1=1.2, b=0.75, with title weight 5 and body weight 1. Graph nodes include each entry node and facet nodes (e.g., jurisdiction, language), and edges include BM25 neighbor edges (k=8) and structural edges (e.g., ARTICLE_OF). The dataset is suitable for research tasks such as text retrieval, graph retrieval, BM25 and vector hybrid retrieval. Note: This dataset is for research purposes only and does not constitute legal advice. Official gazettes or authoritative sources should refer to the official Angolan version.
数据集概述
安哥拉法律信息检索数据集(Angola laws IR) 是一个面向研究用途的法律文本检索数据集,基于 endomorphosis/ipfs_angola_laws 的特定修订版本打包而成,采用 CID 键控的稀疏 GraphRAG 布局。该数据集并非法律建议,仅作为研究快照使用,官方公报或权威来源仍具有优先效力。
核心统计信息
| 项目 | 数量 |
|---|---|
| 法律(语料单元) | 0 |
| 条文(语料单元) | 17,212 |
| 规范文档数 | 17,212 |
| BM25 词项数 | 76,668 |
| BM25 倒排记录数 | 1,899,002 |
| 图节点数 | 18,654 |
| 图边数 | 217,816 |
| 向量数 | 17,212 × 384 维(thenlper/gte-small 嵌入) |
数据组织与配置
数据集包含多个可独立加载的配置(config),覆盖语料、检索索引和图结构:
- corpus:主语料库,Parquet 格式
- bm25_documents / bm25_postings:BM25 检索所需的文档与倒排记录
- bm25_keyword_index:词项到倒排分片的映射索引
- vectors:文档的语义向量表示
- vector_meta_index:语义路由的质心索引
- graph_nodes / graph_edges:属性图的节点与边
- graph_outgoing_adjacency / graph_incoming_adjacency:按分数排序的邻接分页
所有分片采用 Zstandard 压缩的 Parquet 格式,每分片最多 4,096 行。
字段结构
语料单元包含以下规范字段:entry_cid(主键)、law_cid、record_type、jurisdiction、language、instrument_id、instrument_title、article_number、article_title、title、body、source_url、snapshot_date、coverage、license、collector、source_dataset、source_revision。
单元策略优先使用条文级数据;当条文章节为空时,回退到法律级数据。
检索能力
数据集提供三种检索方式:
- BM25 检索:基于 Okapi BM25 算法(k1=1.2,b=0.75,标题权重=5,正文权重=1),支持词项级精确匹配。
- 向量检索:基于 384 维语义向量进行稠密检索,适用于语义相似度查询。
- 图谱邻居查询:基于属性图结构,可查询与指定
entry_cid相邻的节点及关联边。图的邻居边BM25_NEIGHBOR_OF(k=8)携带分数和匹配词项;结构边包括ARTICLE_OF、IDENTIFIED_BY_ELI/IDENTIFIED_BY(仅在源数据中存在相应标识符时生成)。
主键说明
数据集以 entry_cid(基于规范身份记录的 CIDv1 raw sha2-256 哈希)为主键;整数 document_index 仅为紧凑的分片指针,不代表身份标识。
来源与许可
数据集的打包方为 country-laws-ir,上游数据来源于 endomorphosis/ipfs_angola_laws,其收集方和官方许可均沿用该上游数据集。CID 仅标识本地内容,不构成公开 IPFS 固定的证明。





