cole-arxiv-cc-e5-retriever
收藏资源简介:
CoLe arXiv CC E5 Retriever是一个专为CoLe/R2–R4a实验设计的非维基百科检索语料库。该数据集包含从Common Pile过滤的arXiv论文集合中精选的280,738篇文档,并预置了基于E5-base-v2模型的密集向量索引。数据来源于HuggingFace上的common-pile/arxiv_papers_filtered数据集,经过严格筛选,仅保留许可证为CC BY、CC0或Public Domain的文档,排除了需要特殊下游处理的CC BY-SA许可证文档。数据集以分片形式提供,包括语料库JSONL文件、详细的许可证与来源清单、预计算的E5嵌入向量(维度为280,738 x 768)、FAISS平面内积索引文件以及构建和验证脚本。嵌入生成采用与Search-R1兼容的方案,使用passage: 前缀、注意力掩码平均池化、L2归一化和256词元截断。该语料库适用于信息检索、文本检索等任务,用户可以直接加载语料库和FAISS索引进行相似性搜索。数据集为混合许可证集合,用户需根据记录级许可证信息合规使用。
CoLe arXiv CC E5 Retriever is a non-Wikipedia retrieval corpus specifically designed for CoLe/R2–R4a experiments. The dataset contains 280,738 carefully selected documents from the Common Pile filtered arXiv paper collection, with a pre-built dense vector index based on the E5-base-v2 model. The data is sourced from the common-pile/arxiv_papers_filtered dataset on HuggingFace, and undergoes strict filtering to retain only documents with CC BY, CC0, or Public Domain licenses, excluding those with CC BY-SA licenses that require special downstream processing. The dataset is provided in sharded form, including corpus JSONL files, detailed license and source lists, pre-computed E5 embeddings (dimensions 280,738 x 768), FAISS flat inner product index files, and construction and validation scripts. Embedding generation follows a Search-R1 compatible scheme, using a passage: prefix, attention mask average pooling, L2 normalization, and 256 token truncation. This corpus is suitable for information retrieval and text retrieval tasks, allowing users to directly load the corpus and FAISS index for similarity searches. The dataset is a mixed license collection, and users must comply with record-level license information for legal use.
数据集概述:CoLe arXiv CC E5 Retriever
基本信息
- 名称:CoLe arXiv CC E5 Retriever
- 任务类型:文本检索(text-retrieval)
- 许可证:other(混合许可证集合,包含CC BY、CC0、公共领域记录,CC BY-SA记录被排除)
数据集内容
- 包含 280,738 篇来自 Common Pile 筛选后的 arXiv 文档,并附带 E5-base-v2 密集索引
- 来源数据集:
common-pile/arxiv_papers_filtered(版本033cf7f) - 保留许可证元数据为 CC BY、CC0 或公共领域的记录,每条记录保留
license、url、源分片和内容哈希信息
文件组成
| 文件 | 说明 |
|---|---|
hf_shards/arxiv_cc_corpus.jsonl.gz.part-* |
语料库的 16 MiB 分片,合并后可重建完整语料 |
hf_shards/arxiv_cc_manifest.jsonl.gz.part-* |
来源/许可证清单的分片 |
hf_shards/emb_e5.memmap.part-* |
float32 段落嵌入分片,形状为 280,738 x 768 |
hf_shards/e5_Flat.index.part-* |
FAISS IndexFlatIP 文件分片 |
index/index_config.json |
嵌入和索引参数配置 |
stats.json |
来源和过滤统计 |
build_arxiv_cc_e5_retriever.py |
可重现的构建/验证脚本 |
checksums.sha256 |
本地完整文件的 SHA256 校验和 |
嵌入方法
- 模型:
intfloat/e5-base-v2 - 前缀:段落使用
passage:,查询应使用query: - 池化:基于注意力掩码的均值池化(mean pooling)
- 归一化:L2 归一化
- 截断:256 个 token
- 存储格式:float32
- 检索方式:FAISS 内积搜索(IndexFlatIP)
本地重建命令
bash cat hf_shards/arxiv_cc_corpus.jsonl.gz.part-* > arxiv_cc_corpus.jsonl.gz cat hf_shards/arxiv_cc_manifest.jsonl.gz.part-* > arxiv_cc_manifest.jsonl.gz cat hf_shards/emb_e5.memmap.part-* > index/emb_e5.memmap cat hf_shards/e5_Flat.index.part-* > index/e5_Flat.index
最小使用示例
python import faiss from datasets import load_dataset
corpus = load_dataset("json", data_files="arxiv_cc_corpus.jsonl.gz", split="train") index = faiss.read_index("index/e5_Flat.index")
corpus[i]["contents"] 对应于向量 i




