{ "schema_version": "country-laws-ir-graphrag/v1", "layout_family": "skillcenter-huggingface-release/v3", "packager_version": "0.5.0", "primary_key": "entry_cid", "dataset_id": "endomorphosis/ipfs_libya_laws", "dataset_repo_id": "justicedao/ipfs_libya_laws_ir", "dataset_revision": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447", "country": { "slug": "libya", "repo": "endomorphosis/ipfs_libya_laws", "name": "Libya", "indexable": true, "skip_reason": null }, "disclaimer": "Research snapshot. Not legal advice. The official gazette / authentic source prevails.", "bm25": { "k1": 1.2, "b": 0.75, "title_weight": 5.0, "body_weight": 1.0, "average_document_length": 386.13324538258576, "tokenizer": "hf-graphrag-bm25-tokens/v1", "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096 }, "counts": { "bm25_document_chunks": 1, "bm25_documents": 758, "bm25_keyword_shards": 4, "bm25_posting_rows": 15202, "bm25_postings": 33741, "bm25_terms": 15202, "corpus_chunks": 1, "corpus_rows": 758, "graph_edge_chunks": 0, "graph_edges": 5306, "graph_incoming_adjacency_edges": 0, "graph_incoming_adjacency_rows": 0, "graph_incoming_adjacency_shards": 0, "graph_node_chunks": 0, "graph_nodes": 975, "graph_outgoing_adjacency_edges": 0, "graph_outgoing_adjacency_rows": 0, "graph_outgoing_adjacency_shards": 0, "vector_chunks": 1, "vector_rows": 758, "n_laws": 69, "n_articles": 689, "bm25_token_instances": 292689 }, "parquet": { "compression": "zstd", "compression_level": 6, "max_rows_per_file": 4096, "row_group_size": 4096, "query_engine": "duckdb" }, "graph": { "adjacency_pointers_per_row": 4096, "adjacency_pointers_per_shard": 8192, "directions": [ "incoming", "outgoing" ], "max_remote_walk_depth": 8, "ordering": "score_desc_nulls_last", "edge_types": [ "HAS_JURISDICTION", "HAS_LANGUAGE", "BELONGS_TO_LAW", "HAS_ARTICLE", "BM25_NEIGHBOR_OF" ] }, "vector": { "model_name": "thenlper/gte-small", "dimension": 384, "similarity": "cosine", "assignment": "recursive_spherical_kmeans", "layout": "semantic_centroid_groups", "rows_sorted_by": "cosine_similarity_to_shard_centroid_desc", "max_rows_per_chunk": 4096, "max_rows_per_centroid": 8192, "max_shards_per_centroid": 2, "default_probe_centroids": 1, "centroid_count": 1, "shard_count": 1, "n_vectors": 758, "status": "embedded" }, "canonical_fields": [ "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" ], "input_sha256": { "laws.parquet": "287c69f712386f9e5d5d17e84c0934b40fcfabbef472d6a49b90cae303d44253", "articles.parquet": "d460260fd482656ba74cbf76d56346cec6f4fd86ec0235f5fd495c5fa02e00f1" }, "model_id": "thenlper/gte-small", "cid": { "codec": "raw", "hash": "sha2-256", "multibase": "base32", "payload": "json.dumps(obj, sort_keys=True, ensure_ascii=False, separators=(',', ':')).encode('utf-8')" }, "normalization": { "source_dataset": "endomorphosis/ipfs_libya_laws", "source_revision": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447", "laws_sha256": "287c69f712386f9e5d5d17e84c0934b40fcfabbef472d6a49b90cae303d44253", "articles_sha256": "d460260fd482656ba74cbf76d56346cec6f4fd86ec0235f5fd495c5fa02e00f1", "n_laws_in": 69, "n_articles_in": 692, "unit": "law+article", "article_law_coverage": 10.028985507246377, "sparse_article_fallback": false, "drops": { "empty_body": 0, "missing_instrument": 0, "duplicate_cid": 3, "duplicate_source_kept_first": 3 }, "drop_samples": { "empty_body": [], "missing_instrument": [], "duplicate_cid": [ "ly-jo_102_1762435769-1", "ly-jo_102_1762435769-3", "ly-jo_102_1762435769-4" ] }, "language_breakdown": { "ar": 753, "en": 5 }, "quality_flags": { "articles_table_empty": false, "sparse_article_fallback": false, "article_law_coverage": 10.028985507246377, "all_source_article_counts_zero": false, "article_extraction_status_counts": { "missing": 56 }, "missing_date": false, "missing_date_issued": false, "eli_present": false, "never_invented_legal_text": true, "empty_bodies_dropped": 0, "duplicate_cids_dropped": 3 }, "schema_surprises": [ "laws.article_count dtype=int64", "laws.eli non-null=0/69", "laws.language values=['ar', 'en']" ], "n_out": 758, "never_invented_legal_text": true, "n_reconstructed_parents": 0, "n_reconstructed_truncated": 0, "n_reconstructed_stubs": 0, "n_empty_parents_with_articles_not_reconstructed": 0, "n_before_dedupe": 761, "n_law_rows": 69, "n_child_rows": 689, "n_instruments": 69, "n_dropped_total": 3, "record_type_breakdown": { "article": 689, "law": 69 }, "jurisdiction_breakdown": { "LY": 758 }, "snapshot_dates": [ "2026-09-15", "2026-09-18" ], "heading_language_counts": { "ar": 143, "en": 313, "fr": 1, "yo": 1 }, "heading_language_majority": "en", "document_language_majority": "ar", "verification": { "schema_version": "country-laws-normalize-verify/v1", "slug": "", "admitted": true, "n_checks": 10, "n_failed": 0, "failed_ids": [], "checks": [ { "id": "nonempty_corpus", "severity": "fail", "passed": true, "message": "normalized corpus has rows", "evidence": { "n_out": 758, "n_dropped": 3 } }, { "id": "entry_cid_unique", "severity": "fail", "passed": true, "message": "every row has a unique entry_cid", "evidence": { "missing": 0, "empty": 0, "duplicate": 0 } }, { "id": "never_invented_legal_text", "severity": "fail", "passed": true, "message": "normalizer did not invent legal text", "evidence": { "never_invented_legal_text": true } }, { "id": "html_residual", "severity": "fail", "passed": true, "message": "HTML tags stripped from legal bodies", "evidence": { "n_bodies": 758, "n_with_tags": 2, "fraction": 0.002638522427440633, "samples": [ "BT /F1 14.000 Tf ET\n%PDF-1.4\n%\n0.000 G\n1.000 g\n/GS1 gs\n0.567 w\n0 Tr\n[] 0 d\n3 0 obj\n<>\n/Contents 4 0 R>>\nendobj\n4 0 obj\n<", "BT /F1 14.000 Tf ET\n%PDF-1.4\n%\n0.000 G\n1.000 g\n/GS1 gs\n0.567 w\n0 Tr\n[] 0 d\n3 0 obj\n<>\n/Contents 4 0 R>>\nendobj\n4 0 obj\n<" ] } }, { "id": "short_bodies", "severity": "warn", "passed": true, "message": "most legal units have usable body length", "evidence": { "n_short": 3, "n_bodies": 758, "fraction": 0.00395778364116095 } }, { "id": "parent_laws", "severity": "warn", "passed": true, "message": "parent instruments present (69 law rows from 69 source laws)", "evidence": { "n_laws_in": 69, "n_law_rows": 69 } }, { "id": "reconstruction_grounded", "severity": "fail", "passed": true, "message": "reconstructed parents match child glue", "evidence": { "checked": 0, "mismatches": 0, "samples": [] } }, { "id": "empty_parents_with_articles", "severity": "fail", "passed": true, "message": "eligible empty parents all have law rows", "evidence": { "n_empty_parents_with_articles_not_reconstructed": 0 } }, { "id": "legal_structure", "severity": "warn", "passed": true, "message": "retrieval units are structured (law+article, coverage=0.91)", "evidence": { "unit": "law+article", "structured_rows": 689, "coverage": 0.9089709762532981 } }, { "id": "heading_language", "severity": "warn", "passed": true, "message": "heading lexicon majority is en but documents are ar; review samples before trusting structure", "evidence": { "document_language": "ar", "heading_language": "en", "heading_counts": { "ar": 143, "en": 313, "fr": 1, "yo": 1 } } } ], "blocks_graphrag": false } }, "schema_mapping": { "laws": { "id": "instrument_id", "title": "instrument_title", "text": "body", "article_count_dtype_source": "int64" }, "articles": { "id": "source_id / article identity", "law_id": "instrument_id", "title": "article_title", "text": "body" }, "unit_policy": "prefer articles; fall back to law-level when articles empty", "required_law_columns": [ "id", "title", "text" ], "required_article_columns": [ "id", "law_id", "title", "text" ], "fail_closed": true, "notes": "Malta and Germany share the same column names. Drift: Malta article_count is int64, Germany article_count is int32; Germany eli is often null. Identifiers are never invented. Layout matches SkillCenter HF release / publicus-ir family." }, "indexes": { "bm25_document_chunks": { "cid": "bafkreiasdkr2bulfgyvsyjh6sy5d7wcmk5hu3jpuz7xqjftzg72mqx255i", "sha256": "121aa3a0d165362b2c24fe963a3fd84c574f4da5f4cfef04967937f4c85f5dea", "size_bytes": 4577, "relative_path": "indexes/bm25_document_chunks.parquet" }, "bm25_keyword_shards": { "cid": "bafkreihisiogcl7ovj75xhlyamsurd5h2nhqolegkywmfmd5g6pv7vk4ga", "sha256": "e8921c612feeaa7fdb9d780325488fa7d34f072c86562cc2b07d379f5fd55c30", "size_bytes": 5215, "relative_path": "indexes/bm25_keyword_shards.parquet" }, "corpus_chunks": { "cid": "bafkreigsb4orxdcja5bi4y34z5oty4boiboffqgknegsn7yfnwheu7xj5i", "sha256": "d20f1d1b8c4907428e637ccf5d3c702e405c52c0ca690d26ff056d8e4a7ee9ea", "size_bytes": 8604, "relative_path": "indexes/corpus_chunks.parquet" }, "graph_edge_chunks": { "cid": "bafkreiduwogamxenh7god4em73hum3nrmaenr5dbwxfrbwmxp57n4ohxti", "sha256": "74b38c065c8d3fcce1f08cfecf466db16008d8f461b5cb10d9977f7ede38f79a", "size_bytes": 5001, "relative_path": "indexes/graph_edge_chunks.parquet" }, "graph_incoming_adjacency": { "relative_path": "indexes/graph_incoming_adjacency.parquet", "present": false }, "graph_node_chunks": { "cid": "bafkreibpk5shhxmp3eqt2p6cl467h7cylzknf7xdk67zhvpxec476agycq", "sha256": "2f576473dd8fd9213d3fc25f3df3fc585e54d2fee357bf93d5f720b9ff00d814", "size_bytes": 4768, "relative_path": "indexes/graph_node_chunks.parquet" }, "graph_outgoing_adjacency": { "relative_path": "indexes/graph_outgoing_adjacency.parquet", "present": false }, "vector_chunks": { "cid": "bafkreif3appqm6kez3v5w2bmbpfje6u22evmcxmjm6kg7pgae7ttdph4eq", "sha256": "bb03df067944ceebdb682c0bca927a9ad12ac15d8967946fbcc027e731bcfc24", "size_bytes": 18051, "relative_path": "indexes/vector_chunks.parquet" } }, "source": { "source_dataset": "endomorphosis/ipfs_libya_laws", "source_revision": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447", "laws_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_libya_laws/snapshots/d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447/data/laws.parquet", "articles_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_libya_laws/snapshots/d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447/data/articles.parquet", "laws_sha256": "287c69f712386f9e5d5d17e84c0934b40fcfabbef472d6a49b90cae303d44253", "articles_sha256": "d460260fd482656ba74cbf76d56346cec6f4fd86ec0235f5fd495c5fa02e00f1", "n_laws_source": 69, "n_articles_source": 692, "laws_columns": [ "id", "title", "text", "source_url", "source_type", "jurisdiction", "country", "language", "eli", "date", "date_issued", "retrieved_at", "license", "law_status", "identifier", "official_identifier", "article_count", "json_path", "metadata_json" ], "articles_columns": [ "law_id", "id", "title", "text", "source_url", "document_number", "article_number", "record_type", "metadata_json" ], "article_count_dtype": "int64", "schema_surprises": [ "laws.article_count dtype=int64", "laws.eli non-null=0/69", "laws.language values=['ar', 'en']" ] }, "incremental": { "kind": "full_rebuild", "mode": "auto", "reason": "operator forced full rebuild", "source_revision": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447", "prior_revision": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447", "source_fingerprint": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447|287c69f712386f9e5d5d17e84c0934b40fcfabbef472d6a49b90cae303d44253|d460260fd482656ba74cbf76d56346cec6f4fd86ec0235f5fd495c5fa02e00f1", "prior_fingerprint": "d46fc6a85eaa4d39efa4aa66c1d6c284a5ab6447|287c69f712386f9e5d5d17e84c0934b40fcfabbef472d6a49b90cae303d44253|d460260fd482656ba74cbf76d56346cec6f4fd86ec0235f5fd495c5fa02e00f1", "delta": { "n_added": 758, "n_removed": 689, "n_unchanged": 0, "prior_count": 689, "current_count": 758, "changed_ratio": 1.0, "equivalent_to_full": true, "added_cids_sample": [ "bafkreia23jn7focwfdfnn6zkoz7w2elyf4lnksigofgqojl2cqmld64kpy", "bafkreia2hozpc7hd7zodmunrotupps4yisul5iejytnpmxlsicls2ftsby", "bafkreia2s6iozrqctijdtxnuukv3ektqv37kxmh6is3it3tegh7uq25mnq", "bafkreia2vf3p72sqrbyv2gmefrpzshy55vnauukhlobzeiqpcyidp7vsba", "bafkreia35s5t3hw6v3ihl746epvoogxmmez7bsabkt2cblfnqaty7ggd3i", "bafkreia3sulwqm6pzgqdxm25mca4dq4rzzrcjefjwhmca54n47gm5cisli", "bafkreia3vyreiyzrkxlahmerfeehfcihuw23oslm4lrmnnowveds32yro4", "bafkreia4lljar3iniesc7jtspnlwr2bhvxvunxww2v5dgzabrkzj3evnzq" ], "removed_cids_sample": [ "bafkreia2pq4n4el7jdhtl4eemh6hywju4pccmzixncjvue7pymh6ynpdrm", "bafkreia2r7ff53jw5tyr7u5waob5bj23hegjxotq7wpk53ej7xakddgosm", "bafkreia2r7ixien6w7wyhvzy6d3kq36bqxyura7tnypa4bhxq3l5x6f7qu", "bafkreia2ws6ph4mg3v7h636652e3vnxo63dl43u3bqz2rfqrrukahqhlz4", "bafkreia3denua554v62pxuwx4o3aqgjhcpss5r5ntd5msiyoaxogp26j7m", "bafkreia4cvhz4ngcaqup7tswr4sawiinymvt73odugpojmhdf522bqkx5e", "bafkreia4qdfvaotudqjacl3tzyspy2sowxiwjyvoao5jj6ffxwsikvzrzq", "bafkreia4slsmnhhrq2fx3bj5svedcszqv2lub2w25rpznwziyzrrnr7z5m" ] }, "reuse_embeddings": false, "skip_build": false, "equivalent_to_full": true, "schema_version": "country-laws-ir-graphrag/v1", "vectors": { "n_docs": 758, "n_reused": 0, "n_encoded": 758, "n_missing": 0, "model_name": "thenlper/gte-small", "model_revision": "17e1f347d17fe144873b1201da91788898c639cd", "dimension": 384, "status": "merged", "device": "cuda", "device_fallback": false } }, "sparse": { "engine": "hf_graphrag", "schema_version": "country-laws-ir-graphrag/v1", "bm25": { "bm25": { "average_document_length": 386.13324538258576, "b": 0.75, "body_weight": 1.0, "k1": 1.2, "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096, "title_weight": 5.0, "tokenizer": "hf-graphrag-bm25-tokens/v1" }, "configs": { "bm25_documents": "data/bm25/documents/*.parquet", "bm25_postings": "data/bm25/postings/*.parquet", "bm25_keyword_index": "indexes/bm25_keyword_shards.parquet" }, "counts": { "bm25_document_chunks": 1, "bm25_documents": 758, "bm25_keyword_shards": 4, "bm25_posting_rows": 15202, "bm25_postings": 33741, "bm25_terms": 15202, "bm25_token_instances": 292689 }, "indexes": { "bm25_document_chunks": { "cid": "bafkreiasdkr2bulfgyvsyjh6sy5d7wcmk5hu3jpuz7xqjftzg72mqx255i", "relative_path": "indexes/bm25_document_chunks.parquet", "row_count": 1, "sha256": "121aa3a0d165362b2c24fe963a3fd84c574f4da5f4cfef04967937f4c85f5dea", "size_bytes": 4577 }, "bm25_keyword_shards": { "cid": "bafkreihisiogcl7ovj75xhlyamsurd5h2nhqolegkywmfmd5g6pv7vk4ga", "relative_path": "indexes/bm25_keyword_shards.parquet", "row_count": 4, "sha256": "e8921c612feeaa7fdb9d780325488fa7d34f072c86562cc2b07d379f5fd55c30", "size_bytes": 5215 } }, "schema_version": "hf-graphrag-bm25-layout/v1" }, "graph": { "node_count": 975, "edge_count": 5306, "adjacency": "data/graph/adjacency/{out,in}/*.parquet" }, "sqlite": false, "query_engine": "duckdb" } }