Datasets:
Document xrag artifacts v1
Browse files- README.md +39 -0
- REPRODUCING.md +140 -0
- manifest.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-retrieval
|
| 6 |
+
tags:
|
| 7 |
+
- rag
|
| 8 |
+
- minirag
|
| 9 |
+
- faiss
|
| 10 |
+
- diskann
|
| 11 |
+
- reproducibility
|
| 12 |
+
size_categories:
|
| 13 |
+
- 100K<n<1M
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# xrag prebuilt artifacts
|
| 17 |
+
|
| 18 |
+
Eight audited artifact bundles for LihuaWorld, ConcurrentQA, and
|
| 19 |
+
ConcurrentQA-Extended. Download tooling and documentation:
|
| 20 |
+
[lar0129/xrag-artifacts](https://github.com/lar0129/xrag-artifacts).
|
| 21 |
+
|
| 22 |
+
`manifest.json` pins an immutable commit containing the archives under
|
| 23 |
+
`releases/v1/` and records per-archive/per-file SHA-256 checksums, install paths,
|
| 24 |
+
corpus fingerprints, validation results, and known provenance limits.
|
| 25 |
+
|
| 26 |
+
| Dataset | Bundles |
|
| 27 |
+
|---|---|
|
| 28 |
+
| LihuaWorld | 425-document TXT corpus + QA, complete historical MiniRAG graph, Flat |
|
| 29 |
+
| ConcurrentQA | Complete 2,743-document MiniRAG graph, Flat, matching rebuilt DiskANN |
|
| 30 |
+
| ConcurrentQA-Extended | Flat (991,397 vectors, 991,376 distinct texts), DiskANN (991,376 passages) |
|
| 31 |
+
|
| 32 |
+
No standalone ConcurrentQA/Extended corpus dumps, Extended graph, or LihuaWorld
|
| 33 |
+
DiskANN are distributed. Retrieval indexes contain the text needed to return
|
| 34 |
+
passages; upstream data terms still apply. Model weights are not included.
|
| 35 |
+
Compact DiskANN requires a matching query-time embedding service.
|
| 36 |
+
|
| 37 |
+
See [REPRODUCING.md](REPRODUCING.md) for source revisions, reconstruction rules,
|
| 38 |
+
version selection, data terms, and the difference between structural validation
|
| 39 |
+
and full end-to-end reproduction.
|
REPRODUCING.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reproduction and provenance
|
| 2 |
+
|
| 3 |
+
## Release v1 decisions
|
| 4 |
+
|
| 5 |
+
Completeness is measured against the reference corpus, not directory size or date.
|
| 6 |
+
|
| 7 |
+
- **LihuaWorld graph:** the historical `minirag_v002` worktree's
|
| 8 |
+
`LiHuaWorld-MiniRAG-Graph-nothinking-qwen3.5-4B` covers exactly all 425 week
|
| 9 |
+
documents. April 18/19 candidates cover only 368/407. Older 442-document graphs
|
| 10 |
+
contain 17 additional documents. The selected graph has 425 chunk vectors,
|
| 11 |
+
1,212 graph nodes and 507 edges. Its original build commit could not be recovered
|
| 12 |
+
from the relocated worktree. Adjacent historical config is supporting evidence,
|
| 13 |
+
not a guarantee of every historical runtime option.
|
| 14 |
+
- **ConcurrentQA graph:** `Conc-MiniRAG-Graph-nothinking-qwen3.5-4B-0430-keywordFIX`
|
| 15 |
+
covers all 2,743 documents. Other existing candidates cover 2,700, 2,708, or 2,740.
|
| 16 |
+
- **ConcurrentQA DiskANN:** rebuilt from the 2,743 documents and existing 1,024-D
|
| 17 |
+
embeddings in SQLite, without calling an embedding model. The old 18,551-document
|
| 18 |
+
backup exactly matches the HF train split, shares only 1,288 texts with this test
|
| 19 |
+
corpus, and is excluded.
|
| 20 |
+
- **Extended:** Flat contains 991,397 vectors, with exactly 21 duplicate-text
|
| 21 |
+
occurrences. Its 991,376 distinct texts exactly match SQLite and DiskANN.
|
| 22 |
+
The original Flat vectors, IDs and duplicates are preserved. Scores between Flat
|
| 23 |
+
and DiskANN are not claimed identical: duplicate multiplicity and ANN behavior differ.
|
| 24 |
+
|
| 25 |
+
All published FAISS indexes were loaded with their document stores and passed
|
| 26 |
+
three self-query probes. GraphML, all vector matrix shapes/finite values, document
|
| 27 |
+
coverage, chunk IDs and graph source references were checked. All DiskANN passage
|
| 28 |
+
IDs and byte offsets, corpus coverage, required files, and PQ shapes were checked.
|
| 29 |
+
Both DiskANN indexes also loaded successfully through the native backend.
|
| 30 |
+
These checks do not establish end-to-end answer accuracy. Query-time embedding and
|
| 31 |
+
generation still require model services.
|
| 32 |
+
|
| 33 |
+
## Corpus reconstruction
|
| 34 |
+
|
| 35 |
+
### LihuaWorld
|
| 36 |
+
|
| 37 |
+
The corpus archive installs `data/LiHuaWorld/data/week*/*.txt` and
|
| 38 |
+
`qa/query_set.{json,csv}`. All 425 week files are byte-identical between the inspected
|
| 39 |
+
old and new checkouts. `bakery_deliver` is excluded, matching the integrator.
|
| 40 |
+
MiniRAG strips surrounding whitespace; Flat preserves the original text, so their
|
| 41 |
+
text fingerprints differ even though document coverage matches.
|
| 42 |
+
The supplied QA set has 637 entries. Existing placeholder evidence such as `N/A`
|
| 43 |
+
and `What` does not resolve to TXT files; the integrator's warnings are preserved.
|
| 44 |
+
|
| 45 |
+
### ConcurrentQA
|
| 46 |
+
|
| 47 |
+
- HF dataset: `stanfordnlp/concurrentqa`.
|
| 48 |
+
- Cached source revision: `2cc9db602b10a561026c905403a641422f066369`.
|
| 49 |
+
- Split: `test`, 1,600 questions, full range.
|
| 50 |
+
- Traverse each question's `sp` in dataset order. For each nonempty `title` and
|
| 51 |
+
`sents`, form `title + "\n" + "\n".join(sents)`. Keep the first text for each title.
|
| 52 |
+
Assign document IDs in insertion order. This gives 2,743 documents.
|
| 53 |
+
- The original integrator downloads via HF and does not save a standalone corpus
|
| 54 |
+
file. Its QA pairs refer to these document IDs; do not reorder documents when
|
| 55 |
+
reconstructing them.
|
| 56 |
+
|
| 57 |
+
Example source download:
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
from datasets import load_dataset
|
| 61 |
+
|
| 62 |
+
dataset = load_dataset(
|
| 63 |
+
"stanfordnlp/concurrentqa",
|
| 64 |
+
revision="2cc9db602b10a561026c905403a641422f066369",
|
| 65 |
+
split="test",
|
| 66 |
+
)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
The online runner currently uses xrag's integrator and verifies the resulting
|
| 70 |
+
evidence-text fingerprint. If upstream changes, use the source revision above;
|
| 71 |
+
do not silently accept another corpus.
|
| 72 |
+
|
| 73 |
+
### ConcurrentQA-Extended
|
| 74 |
+
|
| 75 |
+
This is a constructed dataset, not a single downloadable HF corpus:
|
| 76 |
+
|
| 77 |
+
1. Start with the ConcurrentQA test documents above, preserving their IDs.
|
| 78 |
+
2. Append parsed CMU Enron `enron_mail_20150507` emails from
|
| 79 |
+
`https://www.cs.cmu.edu/~enron/enron_mail_20150507.tar.gz`.
|
| 80 |
+
The repository constructs text from Subject, Sender, Recipients, maildir path,
|
| 81 |
+
a separator and the decoded body. Empty bodies and parse failures are skipped.
|
| 82 |
+
3. Stream `wikimedia/wikipedia`, config `20231101.en`, split `train`, shuffle
|
| 83 |
+
seed 42, buffer size 10,000, and take 500,000 rows. Skip empty texts and repeated
|
| 84 |
+
titles; rename titles colliding with base evidence using `__ext`.
|
| 85 |
+
The locally cached Wikipedia revision is
|
| 86 |
+
`b04c8d1ceb2f5cd4588862100d08de323dccfbaa`; the historical integrator did not pin
|
| 87 |
+
a revision, so this is observed cache provenance, not proof of its exact input.
|
| 88 |
+
4. Keep whole documents (`identical_chunking`) and drop texts longer than 20,000
|
| 89 |
+
characters. SQLite deduplicates by text hash. The stored release corpus has
|
| 90 |
+
991,376 distinct texts.
|
| 91 |
+
|
| 92 |
+
Maildir traversal used `os.walk` without sorting. Exact historical ID order cannot
|
| 93 |
+
be guaranteed from source downloads alone, even with the same sampling seed.
|
| 94 |
+
The released indexes retain their own mappings and texts. For byte-identical
|
| 95 |
+
reproduction use the published artifacts; for source rebuilds compare corpus
|
| 96 |
+
fingerprints and preserve the base QA document IDs.
|
| 97 |
+
|
| 98 |
+
## Index and runtime configuration
|
| 99 |
+
|
| 100 |
+
- Flat: FAISS `IndexFlatIP`, `normalize_l2: true`, 1,024 dimensions.
|
| 101 |
+
- Flat/DiskANN embeddings: `Qwen/Qwen3-Embedding-0.6B`, truncation 2,048 tokens,
|
| 102 |
+
local OpenAI-compatible provider. The release manifest records the complete
|
| 103 |
+
xrag embedding configuration and the observed dependency versions.
|
| 104 |
+
- MiniRAG: Qwen3-Embedding-0.6B, 1,024 dimensions; Qwen3.5-4B extraction. LihuaWorld
|
| 105 |
+
predates later keyword-extraction fixes. Its larger coverage does not imply the
|
| 106 |
+
same extraction behavior as the April 30 ConcurrentQA graph.
|
| 107 |
+
- DiskANN: LEANN compact/recompute, inner product (`mips`), degree 32, build
|
| 108 |
+
complexity 64, 8 threads, disk PQ 128 bytes, search/build memory budgets 8/16 GiB.
|
| 109 |
+
The published `leann.index` is a prefix: the compact graph is stored in
|
| 110 |
+
`leann_disk_graph.index`, not a file named `leann.index`.
|
| 111 |
+
- Runtime DiskANN config matching directory hash `0ac1b1dfe7b9d7ca`:
|
| 112 |
+
`num_nodes_to_cache: 1000`, `search_complexity: 16`, `beam_width: 4`,
|
| 113 |
+
`prune_ratio: 0.5`, `pruning_strategy: global`, `batch_recompute: true`,
|
| 114 |
+
`dedup_node_dis: true`, `recompute_neighbors: false`. Use the audited
|
| 115 |
+
`configs/pipelines/eta/qwen/agentic_rag_leann_diskann.yml`.
|
| 116 |
+
- LEANN requires native DiskANN/partition support from xrag's pinned dependency
|
| 117 |
+
checkout. A plain upstream `diskannpy` installation is not sufficient.
|
| 118 |
+
- Compact DiskANN recomputes vectors at query time; the matching embedding model
|
| 119 |
+
endpoint must be running. xrag refreshes the endpoint binding from your runtime
|
| 120 |
+
configuration. Published metadata only contains localhost and the `EMPTY` placeholder.
|
| 121 |
+
|
| 122 |
+
The manifest's xrag/dependency commits identify the inspected code snapshot.
|
| 123 |
+
They are not asserted to be the original build commits for historical artifacts.
|
| 124 |
+
Model repository revisions and exact historical server settings were not recorded;
|
| 125 |
+
the release therefore preserves artifacts rather than claiming bit-for-bit rebuilds.
|
| 126 |
+
|
| 127 |
+
## Data terms
|
| 128 |
+
|
| 129 |
+
Index packages include document text in FAISS pickle stores, MiniRAG JSON, and
|
| 130 |
+
LEANN passages. This release does not assign a new blanket license to those texts.
|
| 131 |
+
Consult the original dataset cards and sources for applicable terms and attribution:
|
| 132 |
+
|
| 133 |
+
- https://huggingface.co/datasets/stanfordnlp/concurrentqa
|
| 134 |
+
- https://huggingface.co/datasets/wikimedia/wikipedia
|
| 135 |
+
- https://www.cs.cmu.edu/~enron/
|
| 136 |
+
|
| 137 |
+
LihuaWorld is supplied from the xrag project's local corpus. Use the artifacts for
|
| 138 |
+
the intended research reproduction and retain upstream attribution. Metadata,
|
| 139 |
+
sample text, logs, and credentials beyond the required retrieval payload are not
|
| 140 |
+
added to the release.
|
manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|