{ "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_armenia_laws", "dataset_repo_id": "justicedao/ipfs_armenia_laws_ir", "dataset_revision": "dc754b3a1696d8da009e30fda704288719a8761c", "country": { "slug": "armenia", "repo": "endomorphosis/ipfs_armenia_laws", "name": "Armenia", "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": 75.34294633566226, "tokenizer": "hf-graphrag-bm25-tokens/v1", "max_query_terms": 64, "posting_rows_per_record": 4096, "terms_per_shard": 4096 }, "counts": { "bm25_document_chunks": 7, "bm25_documents": 26908, "bm25_keyword_shards": 5, "bm25_posting_rows": 17290, "bm25_postings": 530737, "bm25_terms": 17273, "corpus_chunks": 7, "corpus_rows": 27460, "graph_edge_chunks": 0, "graph_edges": 192220, "graph_incoming_adjacency_edges": 0, "graph_incoming_adjacency_rows": 0, "graph_incoming_adjacency_shards": 0, "graph_node_chunks": 0, "graph_nodes": 28490, "graph_outgoing_adjacency_edges": 0, "graph_outgoing_adjacency_rows": 0, "graph_outgoing_adjacency_shards": 0, "vector_chunks": 7, "vector_rows": 27460, "n_laws": 342, "n_articles": 18768, "bm25_token_instances": 2027328 }, "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": 11, "shard_count": 11, "n_vectors": 27460, "status": "embedded", "n_reused": 27408, "n_encoded": 52 }, "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": "ba3e9a9d40d178c68ae0ed7aa9113405f1a5343b11cf00c5faf21e2964bc58b8", "articles.parquet": "a18e690b9205a05848cf83585d4e63bb4eb2118aee0fc0117a024960cc7a4fbb" }, "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_armenia_laws", "source_revision": "dc754b3a1696d8da009e30fda704288719a8761c", "laws_sha256": "ba3e9a9d40d178c68ae0ed7aa9113405f1a5343b11cf00c5faf21e2964bc58b8", "articles_sha256": "a18e690b9205a05848cf83585d4e63bb4eb2118aee0fc0117a024960cc7a4fbb", "n_laws_in": 342, "n_articles_in": 16679, "unit": "law+structured", "article_law_coverage": 48.76900584795322, "sparse_article_fallback": false, "drops": { "empty_body": 0, "missing_instrument": 0, "duplicate_cid": 73, "duplicate_source_kept_first": 73 }, "drop_samples": { "empty_body": [], "missing_instrument": [], "duplicate_cid": [ "am-100765-section-1", "am-100765-section-1", "am-100765-section-1", "am-100765-section-1", "am-100912-section-2", "am-101039-section-1", "am-101039-section-2", "am-101039-section-2", "am-101162-section-1", "am-101525-article-1", "am-101525-article-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-1", "am-101592-section-13", "am-101592-section-14" ] }, "language_breakdown": { "hy": 27460 }, "quality_flags": { "articles_table_empty": false, "sparse_article_fallback": false, "article_law_coverage": 48.76900584795322, "all_source_article_counts_zero": false, "article_extraction_status_counts": {}, "missing_date": true, "missing_date_issued": true, "eli_present": false, "never_invented_legal_text": true, "empty_bodies_dropped": 0, "duplicate_cids_dropped": 73 }, "schema_surprises": [ "laws.article_count dtype=int64", "laws.date is entirely null", "laws.date_issued is entirely null", "laws.eli non-null=0/342", "laws.language values=['hy']", "parent headings used for 145 instruments whose article rows were missing or thin" ], "n_out": 27460, "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": 145, "n_before_dedupe": 27533, "n_law_rows": 342, "n_child_rows": 27118, "n_instruments": 342, "n_dropped_total": 73, "record_type_breakdown": { "article": 18768, "section": 8350, "law": 342 }, "jurisdiction_breakdown": { "AM": 27460 }, "snapshot_dates": [ "2026-09-04" ], "heading_language_counts": { "hy": 84 }, "heading_language_majority": "hy", "document_language_majority": "hy", "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": 27460, "n_dropped": 73 } }, { "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": 27460, "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": 285, "n_bodies": 27460, "fraction": 0.010378732702112163 } }, { "id": "parent_laws", "severity": "warn", "passed": true, "message": "parent instruments present (342 law rows from 342 source laws)", "evidence": { "n_laws_in": 342, "n_law_rows": 342 } }, { "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=0.99)", "evidence": { "unit": "law+structured", "structured_rows": 27118, "coverage": 0.9875455207574654 } }, { "id": "heading_language", "severity": "warn", "passed": true, "message": "heading lexicon hy vs document language hy", "evidence": { "document_language": "hy", "heading_language": "hy", "heading_counts": { "hy": 84 } } } ], "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": "bafkreih6a2yusmhlaiepn7nx3lfmlkd6y3fpdnowxgamfbzjkoai5d5tb4", "sha256": "fe06b14930eb0208f6fdb7dacac5a87ec6caf1b5d6b980c2872953808e8fb30f", "size_bytes": 5724, "relative_path": "indexes/bm25_document_chunks.parquet" }, "bm25_keyword_shards": { "cid": "bafkreibgwhhw7oyiz5uavyq7cib5evfb3c7xy75zovuasvpcklscpjqovi", "sha256": "26b1cf6fbb08cf680ae21f1203d254a1d8bf7c7fb975680955e252e427a60eaa", "size_bytes": 5517, "relative_path": "indexes/bm25_keyword_shards.parquet" }, "corpus_chunks": { "cid": "bafkreide5ytlr3mrgksx3kvsm6e5tqyb72ksddgf7f6fxfehaqxnwlb2qi", "sha256": "64ee26b8ed9132a57daab26789d9c301fe95218cc5f97c5b9487042edb2c3a82", "size_bytes": 9834, "relative_path": "indexes/corpus_chunks.parquet" }, "graph_edge_chunks": { "cid": "bafkreiadccf3qy5u34vatpgtnea6nmzbtvtcvrcnfedwa5evoswsat2fra", "sha256": "03108bb863b4df2a09bcd36901e6b3219d662ac44d290760749574ad204f4588", "size_bytes": 13304, "relative_path": "indexes/graph_edge_chunks.parquet" }, "graph_incoming_adjacency": { "relative_path": "indexes/graph_incoming_adjacency.parquet", "present": false }, "graph_node_chunks": { "cid": "bafkreihlqncm5tfsfaw4nxl6t4nv5j7bp7ylvxxsqambj6xgkaj3eybtb4", "sha256": "eb8344ceccb2282dc6dd7e9f1b5ea7e17ff0badef2801814fae65013b260330f", "size_bytes": 6115, "relative_path": "indexes/graph_node_chunks.parquet" }, "graph_outgoing_adjacency": { "relative_path": "indexes/graph_outgoing_adjacency.parquet", "present": false }, "vector_chunks": { "cid": "bafkreidroty5utav4srjjvpvhxtogibuunrrqu3qdiq4xcl7p5uwv7muci", "sha256": "7174f1da4c15e4a294d5f53de6e32034a3631853701a21cb897f7f696afd9412", "size_bytes": 46614, "relative_path": "indexes/vector_chunks.parquet" } }, "source": { "source_dataset": "endomorphosis/ipfs_armenia_laws", "source_revision": "dc754b3a1696d8da009e30fda704288719a8761c", "laws_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_armenia_laws/snapshots/dc754b3a1696d8da009e30fda704288719a8761c/data/laws.parquet", "articles_path": "/home/barberb/.ipfs_datasets/country-laws-ir/cache/hf/datasets--endomorphosis--ipfs_armenia_laws/snapshots/dc754b3a1696d8da009e30fda704288719a8761c/data/articles.parquet", "laws_sha256": "ba3e9a9d40d178c68ae0ed7aa9113405f1a5343b11cf00c5faf21e2964bc58b8", "articles_sha256": "a18e690b9205a05848cf83585d4e63bb4eb2118aee0fc0117a024960cc7a4fbb", "n_laws_source": 342, "n_articles_source": 16679, "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.date is entirely null", "laws.date_issued is entirely null", "laws.eli non-null=0/342", "laws.language values=['hy']" ] }, "incremental": { "kind": "delta_refresh", "mode": "auto", "reason": "source fingerprint matches but vectors are stub/incomplete; encode missing CIDs", "source_revision": "dc754b3a1696d8da009e30fda704288719a8761c", "prior_revision": "dc754b3a1696d8da009e30fda704288719a8761c", "source_fingerprint": "dc754b3a1696d8da009e30fda704288719a8761c|ba3e9a9d40d178c68ae0ed7aa9113405f1a5343b11cf00c5faf21e2964bc58b8|a18e690b9205a05848cf83585d4e63bb4eb2118aee0fc0117a024960cc7a4fbb", "prior_fingerprint": "dc754b3a1696d8da009e30fda704288719a8761c|ba3e9a9d40d178c68ae0ed7aa9113405f1a5343b11cf00c5faf21e2964bc58b8|a18e690b9205a05848cf83585d4e63bb4eb2118aee0fc0117a024960cc7a4fbb", "delta": { "n_added": 52, "n_removed": 18, "n_unchanged": 27408, "prior_count": 27426, "current_count": 27460, "changed_ratio": 0.0018936635105608612, "equivalent_to_full": false, "added_cids_sample": [ "bafkreia4ckotsyv7ket4loa6kee4t3yatwwq4oy46ggac5mt4blcvqemdi", "bafkreia6gcocfsn2wxq62apvfyzocgz77lsvgy5qs5e6b2wvj33fiw5lde", "bafkreia7jwqzykdwerkf746t27rp4prswsjulh4dx2ckrw3s6agbry36ka", "bafkreiadagxi6wwjwswlwgbvj22ibuev243y5iuc3mwrnlcffiwkg6ie4a", "bafkreiahyv2xzr2xraeq4n7cdsm7uzc6nbbxey46eeyqdshiw4ubmgiy5q", "bafkreiaitftsft6ieev3fmdptyp56llemt7a77grhlgxyrb24b26x2hpye", "bafkreiasapvfs25vexs7rehir3zx6rqgkwgyvjzke6qt4kpzwv5kgjqpq4", "bafkreiasy4o64nelzzxeq25gb6t6ytdrylvfznjykpjtftmcmh5otgym5i" ], "removed_cids_sample": [ "bafkreia3ofkt62h6tx6tsskykzgodzqoxdls2q2uz4ry6mhu6d4qvtc2de", "bafkreia3zuw75rljfrxza3weidnhzcctihrksdod76aiwlequo6lqekwym", "bafkreiamawqtls7ghen4prs4dbdtnxnkklgievzs5mqlvx5q224wgjhqdi", "bafkreiap4jvebf2zh2tpoe3n5gti3ovlakb2mvezcs2pangpfyellepb6m", "bafkreidmb3ndkncptqxhfgo5bitbqmpt5vvy6p7vxfookxevr7n4et7jma", "bafkreidorvz433i43z2jxrihhn3zdimdm3wczgqliivfrf2p75plipkv2i", "bafkreidu4rchud2qghzmxlg4o4nay72an4irwrrzuvnsmsfu2gywgbjifm", "bafkreie7ikmkgkzn2qsitpomxqajzdnvcl2jt5gtomqbuuparhmkcfbzsa" ] }, "reuse_embeddings": true, "skip_build": false, "equivalent_to_full": false, "schema_version": "country-laws-ir-graphrag/v1", "vectors": { "n_docs": 27460, "n_reused": 27408, "n_encoded": 52, "n_missing": 0, "model_name": "thenlper/gte-small", "model_revision": "17e1f347d17fe144873b1201da91788898c639cd", "dimension": 384, "status": "merged", "device": "cuda:1", "device_fallback": false } }, "sparse": { "engine": "hf_graphrag", "schema_version": "country-laws-ir-graphrag/v1", "bm25": { "bm25": { "average_document_length": 75.34294633566226, "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": 7, "bm25_documents": 26908, "bm25_keyword_shards": 5, "bm25_posting_rows": 17290, "bm25_postings": 530737, "bm25_terms": 17273, "bm25_token_instances": 2027328 }, "indexes": { "bm25_document_chunks": { "cid": "bafkreih6a2yusmhlaiepn7nx3lfmlkd6y3fpdnowxgamfbzjkoai5d5tb4", "relative_path": "indexes/bm25_document_chunks.parquet", "row_count": 7, "sha256": "fe06b14930eb0208f6fdb7dacac5a87ec6caf1b5d6b980c2872953808e8fb30f", "size_bytes": 5724 }, "bm25_keyword_shards": { "cid": "bafkreibgwhhw7oyiz5uavyq7cib5evfb3c7xy75zovuasvpcklscpjqovi", "relative_path": "indexes/bm25_keyword_shards.parquet", "row_count": 5, "sha256": "26b1cf6fbb08cf680ae21f1203d254a1d8bf7c7fb975680955e252e427a60eaa", "size_bytes": 5517 } }, "schema_version": "hf-graphrag-bm25-layout/v1" }, "graph": { "node_count": 28490, "edge_count": 192220, "adjacency": "data/graph/adjacency/{out,in}/*.parquet" }, "sqlite": false, "query_engine": "duckdb" } }