zhongshsh commited on
Commit
6186ccb
·
verified ·
1 Parent(s): 42857e9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +99 -0
README.md CHANGED
@@ -1,3 +1,102 @@
1
  ---
 
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pretty_name: AgentWebBench Corpus
3
  license: mit
4
+ language:
5
+ - en
6
+ task_categories:
7
+ - text-retrieval
8
+ size_categories:
9
+ - 10M<n<100M
10
+ tags:
11
+ - information-retrieval
12
+ - dense-retrieval
13
+ - faiss
14
+ - embeddings
15
+ - clueweb22
16
+ - agents
17
+ - benchmark
18
  ---
19
+
20
+ # AgentWebBench Corpus
21
+
22
+ Pre-built **dense-retrieval corpus** for [AgentWebBench](https://arxiv.org/abs/2604.10938) [ICML 2026], a benchmark for Multi-Agent Coordination in Agentic Web over a realistic 100-website slice of
23
+ [ClueWeb22](https://lemurproject.org/clueweb22/) (~18.4M documents).
24
+
25
+ This repository holds the **embeddings and FAISS indices** the benchmark loads at run time, including per-website indices, a global index, and website-level vectors. It does **not** contain ClueWeb22 text (see [Raw documents](#raw-documents-clueweb22-b)).
26
+ - **Websites:** 100
27
+ - **Documents:** ~18.4M
28
+ - **Embedding dim:** 1024
29
+
30
+
31
+ ⚠️ **Derived from ClueWeb22.** These vectors and ID maps are derived from ClueWeb22 documents. Use is subject to the [ClueWeb22 license](https://lemurproject.org/clueweb22/).
32
+
33
+ ## 1. Contents
34
+
35
+ ```
36
+ faiss_indices/
37
+ ├── <website>.faiss # per-website FAISS index (IndexFlatIP over doc vectors)
38
+ └── <website>_doc_ids.npy # row i of the index → that website's ClueWeb22 doc_id
39
+ website_embeddings.pkl # {website → 1024-d vector}; used to rank/select websites
40
+ global_doc_index.faiss # one FAISS index over ALL ~18.4M documents
41
+ global_doc_ids.npy # row i of the global index → ClueWeb22 doc_id
42
+ ```
43
+
44
+ **How `.faiss` and `_doc_ids.npy` pair up:** a FAISS search returns integer row positions, not document IDs. The `.faiss` stores the vectors; the `_doc_ids.npy` is the row→`doc_id` lookup. They are strictly aligned by position and must be used together.
45
+
46
+
47
+ ## 2. Usage
48
+
49
+ ### 2.1 With the AgentWebBench code (recommended)
50
+
51
+ ```bash
52
+ git clone https://github.com/cxcscmu/AutoGEO/AgentWebBench
53
+ cd AgentWebBench
54
+ python -m awbench.download --output-dir ./AgentWebBench-corpus
55
+ # then set WEBSITE_DATA_ROOT in awbench/config.py to ./AgentWebBench-corpus
56
+ ```
57
+
58
+ ### 2.2 Directly with `huggingface_hub`
59
+
60
+ ```python
61
+ from huggingface_hub import snapshot_download
62
+
63
+ path = snapshot_download(
64
+ repo_id="cx-cmu/AgentWebBench-corpus",
65
+ repo_type="dataset",
66
+ local_dir="./AgentWebBench-corpus",
67
+ )
68
+ ```
69
+
70
+ ### 2.3 Load an index
71
+
72
+ ```python
73
+ import faiss, numpy as np
74
+
75
+ index = faiss.read_index("faiss_indices/community.spiceworks.com.faiss")
76
+ doc_ids = np.load("faiss_indices/community.spiceworks.com_doc_ids.npy", allow_pickle=True)
77
+
78
+ # encode your query with MiniCPM-Embedding-Light (1024-d, normalized), then:
79
+ scores, rows = index.search(query_vec.reshape(1, -1).astype("float32"), 10)
80
+ hits = [str(doc_ids[i]) for i in rows[0]] # ClueWeb22 doc_ids
81
+ ```
82
+
83
+
84
+ This corpus stores only vectors and `doc_id`s. To read the actual page text for a retrieved `doc_id`, obtain [ClueWeb22 category B](https://lemurproject.org/clueweb22/index.php) (license required) and point `CLUEWEB_ROOT_PATH` at it.
85
+
86
+ ## 3. How it was built
87
+
88
+ We follow [tevatron](https://github.com/texttron/tevatron) to build embeddings and FAISS indices. Specifically,
89
+ - **Encoder:** [`openbmb/MiniCPM-Embedding-Light`](https://huggingface.co/openbmb/MiniCPM-Embedding-Light)
90
+ - **Dimension:** 1024
91
+ - **Index:** FAISS `IndexFlatIP`
92
+
93
+ ## 4. Citation
94
+
95
+ ```bibtex
96
+ @article{zhong2026agentwebbench,
97
+ title={AgentWebBench: Benchmarking Multi-Agent Coordination in Agentic Web},
98
+ author={Zhong, Shanshan and Shen, Kate and Xiong, Chenyan},
99
+ journal={arXiv preprint arXiv:2604.10938},
100
+ year={2026}
101
+ }
102
+ ```