{ "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_estonia_laws", "dataset_repo_id": "justicedao/ipfs_estonia_laws_ir", "dataset_revision": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d", "country": { "slug": "estonia", "repo": "endomorphosis/ipfs_estonia_laws", "name": "Estonia", "indexable": true }, "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": 369.7336899201446, "tokenizer": "hf-graphrag-bm25-tokens/v1", "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096 }, "counts": { "bm25_document_chunks": 17, "bm25_documents": 66370, "bm25_keyword_shards": 58, "bm25_posting_rows": 236552, "bm25_postings": 8403964, "bm25_terms": 236030, "corpus_chunks": 17, "corpus_rows": 66370, "graph_edge_chunks": 0, "graph_edges": 464590, "graph_incoming_adjacency_edges": 0, "graph_incoming_adjacency_rows": 0, "graph_incoming_adjacency_shards": 0, "graph_node_chunks": 0, "graph_nodes": 76826, "graph_outgoing_adjacency_edges": 0, "graph_outgoing_adjacency_rows": 0, "graph_outgoing_adjacency_shards": 0, "vector_chunks": 17, "vector_rows": 66370, "n_laws": 3484, "n_articles": 62252, "bm25_token_instances": 24539225 }, "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": 4, "centroid_count": 25, "shard_count": 25, "n_vectors": 66370, "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": "e4f3b3dfef5d79afc51de8a85d91db123cff5a41b7c389e65e5baa5cd50a1d50", "articles.parquet": "8a941191bde22bc8eb984637c1a5dbbbbea3ca550676afb298450aa0957dc364" }, "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_estonia_laws", "source_revision": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d", "laws_sha256": "e4f3b3dfef5d79afc51de8a85d91db123cff5a41b7c389e65e5baa5cd50a1d50", "articles_sha256": "8a941191bde22bc8eb984637c1a5dbbbbea3ca550676afb298450aa0957dc364", "n_laws_in": 3484, "n_articles_in": 62308, "unit": "law+structured", "article_law_coverage": 17.884041331802525, "sparse_article_fallback": false, "drops": { "empty_body": 0, "missing_instrument": 0, "duplicate_cid": 4, "duplicate_source_kept_first": 4 }, "drop_samples": { "empty_body": [], "missing_instrument": [], "duplicate_cid": [ "ee-akt-116092025018-section-2", "ee-akt-23706-section-1", "ee-akt-23706-section-2", "ee-akt-23706-section-3" ] }, "language_breakdown": { "et": 66370 }, "quality_flags": { "articles_table_empty": false, "sparse_article_fallback": false, "article_law_coverage": 17.884041331802525, "all_source_article_counts_zero": false, "article_extraction_status_counts": { "missing": 306, "ok": 3178 }, "missing_date": false, "missing_date_issued": true, "eli_present": true, "never_invented_legal_text": true, "empty_bodies_dropped": 0, "duplicate_cids_dropped": 4 }, "schema_surprises": [ "laws.article_count dtype=int32", "laws.date_issued is entirely null", "laws.eli non-null=3484/3484", "laws.language values=['et']", "parent headings used for 55 instruments whose article rows were missing or thin" ], "n_out": 66370, "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_thin_instruments_replaced": 55, "n_statute_rows_kept_as_law": 0, "n_before_dedupe": 66374, "n_law_rows": 3484, "n_child_rows": 62886, "n_instruments": 3484, "n_dropped_total": 4, "record_type_breakdown": { "article": 62252, "law": 3484, "section": 634 }, "jurisdiction_breakdown": { "EE": 66370 }, "snapshot_dates": [ "2026-09-02" ], "heading_language_counts": { "et": 15 }, "heading_language_majority": "et", "document_language_majority": "et", "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": 66370, "n_dropped": 4 } }, { "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": 66370, "n_with_tags": 0, "fraction": 0.0, "samples": [] } }, { "id": "short_bodies", "severity": "warn", "passed": true, "message": "most legal units have usable body length", "evidence": { "n_short": 9, "n_bodies": 66370, "fraction": 0.00013560343528702727 } }, { "id": "parent_laws", "severity": "warn", "passed": true, "message": "parent instruments present (3484 law rows from 3484 source laws)", "evidence": { "n_laws_in": 3484, "n_law_rows": 3484 } }, { "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+structured, coverage=1.00)", "evidence": { "unit": "law+structured", "structured_rows": 66089, "coverage": 0.9957661594093717 } }, { "id": "heading_language", "severity": "warn", "passed": true, "message": "heading lexicon et vs document language et", "evidence": { "document_language": "et", "heading_language": "et", "heading_counts": { "et": 15 } } } ], "blocks_graphrag": false } }, "schema_mapping": { "laws": { "id": "instrument_id", "title": "instrument_title", "text": "body", "article_count_dtype_source": "int32" }, "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": "bafkreiaruedv5lessyp5gfstftopwhkys4oppyp7x2dazkiqsrokxw4kje", "sha256": "11a1075eac92961fd316532cdcfb1d58971cf7e1ffbe860ca910945cabdb8a49", "size_bytes": 7047, "relative_path": "indexes/bm25_document_chunks.parquet" }, "bm25_keyword_shards": { "cid": "bafkreigc4ybgivvtrjyd2al2n2chjpitvnheotzgmzjnmu374gihq6qm2a", "sha256": "c2e6026456b38a703d017a6e8474bd13ab4e474f266652d6537fe190787a0cd0", "size_bytes": 10674, "relative_path": "indexes/bm25_keyword_shards.parquet" }, "corpus_chunks": { "cid": "bafkreih3stwagagwqb7dvplhw3hge6vd66zrjta2bsvzov5u5vzlte42iu", "sha256": "fb94ec0300d6807e3abd67b6ce627aa3f7b314cc1a0cab9757b4ed72b9939a45", "size_bytes": 11189, "relative_path": "indexes/corpus_chunks.parquet" }, "graph_edge_chunks": { "cid": "bafkreidrqdoyndb5fhegw6rrptt3nshxt6pshj4a7x2mvc6burzhiiarn4", "sha256": "7180dd868c3d29c86b7a317ce7b6c8f79f9f23a780fdf4ca8bc1a4727420116f", "size_bytes": 25481, "relative_path": "indexes/graph_edge_chunks.parquet" }, "graph_incoming_adjacency": { "relative_path": "indexes/graph_incoming_adjacency.parquet", "present": false }, "graph_node_chunks": { "cid": "bafkreiegn3vp6hcrilz4vbntone4bgvybm4g7slkg2vzpsw4wxrr5amuyu", "sha256": "866eeaff1c5142f3ca85b37349c09ab80b386fc96a36ab97cadcb5e31e8194c5", "size_bytes": 8157, "relative_path": "indexes/graph_node_chunks.parquet" }, "graph_outgoing_adjacency": { "relative_path": "indexes/graph_outgoing_adjacency.parquet", "present": false }, "vector_chunks": { "cid": "bafkreig7xcl4krb3n4yukut67gxdyc7p7i2ihi42wstrwljuh7jak6gada", "sha256": "dfb897c5443b6f3145527ef9ae3c0beffa3483a39ab4a71b2d343fd20578c018", "size_bytes": 93958, "relative_path": "indexes/vector_chunks.parquet" } }, "source": { "source_dataset": "endomorphosis/ipfs_estonia_laws", "source_revision": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d", "laws_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_estonia_laws/snapshots/902b122cd27eed93e96c28a0ba5a70e9cb36ab7d/data/laws.parquet", "articles_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_estonia_laws/snapshots/902b122cd27eed93e96c28a0ba5a70e9cb36ab7d/data/articles.parquet", "laws_sha256": "e4f3b3dfef5d79afc51de8a85d91db123cff5a41b7c389e65e5baa5cd50a1d50", "articles_sha256": "8a941191bde22bc8eb984637c1a5dbbbbea3ca550676afb298450aa0957dc364", "n_laws_source": 3484, "n_articles_source": 62308, "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": "int32", "schema_surprises": [ "laws.article_count dtype=int32", "laws.date_issued is entirely null", "laws.eli non-null=3484/3484", "laws.language values=['et']" ] }, "incremental": { "kind": "full_rebuild", "mode": "auto", "reason": "CID overlap is empty; delta equals a full rebuild", "source_revision": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d", "prior_revision": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d", "source_fingerprint": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d|e4f3b3dfef5d79afc51de8a85d91db123cff5a41b7c389e65e5baa5cd50a1d50|8a941191bde22bc8eb984637c1a5dbbbbea3ca550676afb298450aa0957dc364", "prior_fingerprint": "902b122cd27eed93e96c28a0ba5a70e9cb36ab7d|e4f3b3dfef5d79afc51de8a85d91db123cff5a41b7c389e65e5baa5cd50a1d50|8a941191bde22bc8eb984637c1a5dbbbbea3ca550676afb298450aa0957dc364", "delta": { "n_added": 66370, "n_removed": 62308, "n_unchanged": 0, "prior_count": 62308, "current_count": 66370, "changed_ratio": 1.0, "equivalent_to_full": true, "added_cids_sample": [ "bafkreia22arilijptjwzornbpfbllsm3vkjjbqzl3man35nrzbvdctc7sq", "bafkreia22bcd7sgk7i43i5q6ae3obkz4j3t4okdyldoa4mvkctq3psgkmu", "bafkreia22eympvrnyh3fmrordn6wvzxbnszs74anelqr6wgqbi3uk234wm", "bafkreia22fioss3lwkiq7xdeemndnwcpuw5eqx3mfmqvohxnqglgxmkbta", "bafkreia22fqzldebvcezm6k3ctclvbzk4wmrvmqqhshp7qcl5sruveztdy", "bafkreia22oksh2zkkmrkhz6xpuntdlbx3sflnfcnmaoerzzwxilh2ptz6q", "bafkreia22rkmcqwfjphdxqz4vwre6tqicpejrsmrn5lxlyjrc2uxfazsty", "bafkreia233jvzkldkfcbp23qoazjutoaasbfzft5rrmxfgck6f2xh2grj4" ], "removed_cids_sample": [ "bafkreia226nf6ld5m56u6rsjgf7lo7my7zmuwaxoyxqafzyp72y5s6trve", "bafkreia227ctjrqenbe66gsx6kky6sojlpcipquwojtgbpmdufigxjkyxi", "bafkreia22m5pqvpw5oblygwjewasq6qwlqokrm4eysncitvc2mr2dfjpfa", "bafkreia22ocbd3a4aqdbapjrdjdtsraloqlj7ovvw6d2bopttxdilaqgyi", "bafkreia22pr4sp7vfmqhcwgjkh3n4dtpzretepq3a2xokl4m3ihfig6htu", "bafkreia22tf537zmrfgh6cld5ektqluumplvnvtm23s7hwgenktuwjkupi", "bafkreia22wfym6kvqotstzc7a6vcrutvgic3k3k3goizdi3scvel4bbski", "bafkreia232uosz6d2mk62wyxrbggwucpavlrkxhogqbmdy3zebcr2eh7ru" ] }, "reuse_embeddings": false, "skip_build": false, "equivalent_to_full": true, "schema_version": "country-laws-ir-graphrag/v1", "vectors": { "n_docs": 66370, "n_reused": 0, "n_encoded": 66370, "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": 369.7336899201446, "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": 17, "bm25_documents": 66370, "bm25_keyword_shards": 58, "bm25_posting_rows": 236552, "bm25_postings": 8403964, "bm25_terms": 236030, "bm25_token_instances": 24539225 }, "indexes": { "bm25_document_chunks": { "cid": "bafkreiaruedv5lessyp5gfstftopwhkys4oppyp7x2dazkiqsrokxw4kje", "relative_path": "indexes/bm25_document_chunks.parquet", "row_count": 17, "sha256": "11a1075eac92961fd316532cdcfb1d58971cf7e1ffbe860ca910945cabdb8a49", "size_bytes": 7047 }, "bm25_keyword_shards": { "cid": "bafkreigc4ybgivvtrjyd2al2n2chjpitvnheotzgmzjnmu374gihq6qm2a", "relative_path": "indexes/bm25_keyword_shards.parquet", "row_count": 58, "sha256": "c2e6026456b38a703d017a6e8474bd13ab4e474f266652d6537fe190787a0cd0", "size_bytes": 10674 } }, "schema_version": "hf-graphrag-bm25-layout/v1" }, "graph": { "node_count": 76826, "edge_count": 464590, "adjacency": "data/graph/adjacency/{out,in}/*.parquet" }, "sqlite": false, "query_engine": "duckdb" } }