hotchpotch commited on
Commit
9d92be0
·
verified ·
1 Parent(s): 2aa1f8f

Copy dataset from hotchpotch/NanoCodeRAG

Browse files
NanoCodeRAGLibraryDocumentationSolutions/corpus/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e5e615610e459c0670ac4ee98e0f09975c268e9becf5e7f98178b055e543ff4
3
+ size 5341861
NanoCodeRAGLibraryDocumentationSolutions/metadata/test.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGLibraryDocumentationSolutions",
3
+ "source_task": "CodeRAGLibraryDocumentationSolutions",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/library-documentation",
7
+ "revision": "b530d3b5a25087d2074e731b76232db85b9e9107"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 8683,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.22787182501736197,
32
+ "ndcg_at_100": 0.32897685481599515,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 1320,
42
+ "qrels_rewritten_for_duplicate_text": 3,
43
+ "forced_queries": 85,
44
+ "forced_doc_count": 85,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
NanoCodeRAGLibraryDocumentationSolutions/qrels/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:749ff1a28435bf780e99bc7ed3438a66d82ddc0fce0ba91d623ff90f9a0518ac
3
+ size 3273
NanoCodeRAGLibraryDocumentationSolutions/queries/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f20bd13d554e6f9232f3bc32c4dc409581b0fc9ddc02e4bd04ac1066482ad2bd
3
+ size 33129
NanoCodeRAGOnlineTutorials/corpus/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ef86b62d271c5514df072cc7d3aff148736b436e3b370657558cb9cd7f44a17
3
+ size 24617955
NanoCodeRAGOnlineTutorials/metadata/test.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGOnlineTutorials",
3
+ "source_task": "CodeRAGOnlineTutorials",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/online-tutorials",
7
+ "revision": "095bb77130082e4690d6c3a031997b03487bf6e2"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 9997,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.7471740687426192,
32
+ "ndcg_at_100": 0.7751689411050038,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 3,
42
+ "qrels_rewritten_for_duplicate_text": 0,
43
+ "forced_queries": 17,
44
+ "forced_doc_count": 17,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
NanoCodeRAGOnlineTutorials/qrels/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e345d0b5fad8655f6f8e5b74106e21bf62d6ede53d512968bb59f91cf55e5b5a
3
+ size 3286
NanoCodeRAGOnlineTutorials/queries/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:601b5ffdbe63e5d68f2366347cd0839f896cd3101fe71453d347eb782a6280dc
3
+ size 9959
NanoCodeRAGProgrammingSolutions/corpus/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:309339c44f3ced80edc67b76a01d649bb00cbcefd69657dc0d8d956fd0062dd1
3
+ size 96798
NanoCodeRAGProgrammingSolutions/metadata/test.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGProgrammingSolutions",
3
+ "source_task": "CodeRAGProgrammingSolutions",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/programming-solutions",
7
+ "revision": "1064f7bba54d5400d4836f5831fe4c2332a566a6"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 984,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.013766639566113393,
32
+ "ndcg_at_100": 0.1682429769064631,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 986,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 3,
42
+ "qrels_rewritten_for_duplicate_text": 1,
43
+ "forced_queries": 149,
44
+ "forced_doc_count": 149,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
NanoCodeRAGProgrammingSolutions/qrels/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72b3fe1679f05c224c208cfd7dafc7d4edabae6b4f9e8dccbe5bc13b58e7918d
3
+ size 3338
NanoCodeRAGProgrammingSolutions/queries/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bd5d2afb1f2da0686d57bc25af7c0a915adac9744d6a47d857d226fddf25fa1
3
+ size 8767
NanoCodeRAGStackoverflowPosts/corpus/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7594e699a4f313edcb88d996505d2549b8dc52ba5edbde8e3024f501592e8c02
3
+ size 26201393
NanoCodeRAGStackoverflowPosts/metadata/test.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGStackoverflowPosts",
3
+ "source_task": "CodeRAGStackoverflowPosts",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/stackoverflow-posts",
7
+ "revision": "04e05d86cb0ac467b29a5d87f4c56eac99dfc0a4"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 10000,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.6901992073523491,
32
+ "ndcg_at_100": 0.7306863125004465,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 0,
42
+ "qrels_rewritten_for_duplicate_text": 0,
43
+ "forced_queries": 10,
44
+ "forced_doc_count": 10,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
NanoCodeRAGStackoverflowPosts/qrels/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba72708b031ea9f524a74fbee827b20b640c9b8f113234aa19e8020cc2417f98
3
+ size 3299
NanoCodeRAGStackoverflowPosts/queries/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7599606f33ea48b0e7acdfc08a7d405280df25d542d60b4c36da9281b337ed7b
3
+ size 29577
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: bm25
4
+ data_files:
5
+ - split: NanoCodeRAGLibraryDocumentationSolutions
6
+ path: bm25/NanoCodeRAGLibraryDocumentationSolutions.parquet
7
+ - split: NanoCodeRAGOnlineTutorials
8
+ path: bm25/NanoCodeRAGOnlineTutorials.parquet
9
+ - split: NanoCodeRAGProgrammingSolutions
10
+ path: bm25/NanoCodeRAGProgrammingSolutions.parquet
11
+ - split: NanoCodeRAGStackoverflowPosts
12
+ path: bm25/NanoCodeRAGStackoverflowPosts.parquet
13
+ - config_name: corpus
14
+ data_files:
15
+ - split: NanoCodeRAGLibraryDocumentationSolutions
16
+ path: NanoCodeRAGLibraryDocumentationSolutions/corpus/test.parquet
17
+ - split: NanoCodeRAGOnlineTutorials
18
+ path: NanoCodeRAGOnlineTutorials/corpus/test.parquet
19
+ - split: NanoCodeRAGProgrammingSolutions
20
+ path: NanoCodeRAGProgrammingSolutions/corpus/test.parquet
21
+ - split: NanoCodeRAGStackoverflowPosts
22
+ path: NanoCodeRAGStackoverflowPosts/corpus/test.parquet
23
+ - config_name: qrels
24
+ data_files:
25
+ - split: NanoCodeRAGLibraryDocumentationSolutions
26
+ path: NanoCodeRAGLibraryDocumentationSolutions/qrels/test.parquet
27
+ - split: NanoCodeRAGOnlineTutorials
28
+ path: NanoCodeRAGOnlineTutorials/qrels/test.parquet
29
+ - split: NanoCodeRAGProgrammingSolutions
30
+ path: NanoCodeRAGProgrammingSolutions/qrels/test.parquet
31
+ - split: NanoCodeRAGStackoverflowPosts
32
+ path: NanoCodeRAGStackoverflowPosts/qrels/test.parquet
33
+ - config_name: queries
34
+ data_files:
35
+ - split: NanoCodeRAGLibraryDocumentationSolutions
36
+ path: NanoCodeRAGLibraryDocumentationSolutions/queries/test.parquet
37
+ - split: NanoCodeRAGOnlineTutorials
38
+ path: NanoCodeRAGOnlineTutorials/queries/test.parquet
39
+ - split: NanoCodeRAGProgrammingSolutions
40
+ path: NanoCodeRAGProgrammingSolutions/queries/test.parquet
41
+ - split: NanoCodeRAGStackoverflowPosts
42
+ path: NanoCodeRAGStackoverflowPosts/queries/test.parquet
43
+ default: true
44
+ language:
45
+ - code
46
+ tags:
47
+ - information-retrieval
48
+ - retrieval
49
+ - nano
50
+ - bm25
51
+ ---
52
+
53
+ # NanoCodeRAG
54
+
55
+ This dataset is a Nano-style retrieval dataset. Nano-series evaluation can be run easily with the [HAKARI-Bench](https://github.com/hotchpotch/hakari-bench).
56
+
57
+ NanoCodeRAG is derived from CodeRAG. It follows the Hugging Face Datasets layout convention used by [sentence-transformers/NanoBEIR-en](https://huggingface.co/datasets/sentence-transformers/NanoBEIR-en): each Nano split has separate `corpus`, `queries`, and `qrels` tables, and BM25 candidates are provided separately in a `bm25` table. This layout follows the NanoBEIR-style evaluation approach summarized in [NanoBEIR](https://huggingface.co/blog/sionic-ai/eval-sionic-nano-beir).
58
+
59
+ NanoCodeRAG contains 4 Nano retrieval splits derived from CodeRAG. Each split keeps up to 200 eligible queries and up to 10000 corpus documents, with exact duplicate query and document text removed where the generator records that policy.
60
+
61
+ ## Source Links
62
+
63
+ - Source benchmark: `CodeRAG`
64
+ - `code-rag-bench/library-documentation`: https://huggingface.co/datasets/code-rag-bench/library-documentation
65
+ - `code-rag-bench/online-tutorials`: https://huggingface.co/datasets/code-rag-bench/online-tutorials
66
+ - `code-rag-bench/programming-solutions`: https://huggingface.co/datasets/code-rag-bench/programming-solutions
67
+ - `code-rag-bench/stackoverflow-posts`: https://huggingface.co/datasets/code-rag-bench/stackoverflow-posts
68
+
69
+ ## Data Layout
70
+
71
+ This dataset uses four Hugging Face Datasets configs:
72
+
73
+ - `corpus`: documents with `_id` and `text`
74
+ - `queries`: queries with `_id` and `text`
75
+ - `qrels`: positive relevance labels with `query-id` and `corpus-id`
76
+ - `bm25`: BM25 candidate lists with `query-id` and `corpus-ids`
77
+
78
+ Each config uses the same Nano split names. If the actual generated dataset uses a different schema, config name, path layout, or field name, revise this section before publishing the README.
79
+
80
+ ## Construction Steps
81
+
82
+ This dataset was built as follows. If the actual generation procedure differs, revise this section before publishing the README.
83
+
84
+ 1. Use CodeRAG as the upstream benchmark or dataset family.
85
+ 2. Load the source datasets recorded in `manifest.json` and per-split metadata files.
86
+ 3. Use the source benchmark evaluation split, preferring `test` when available as the source evaluation split policy.
87
+ 4. Create one Nano split for each selected source retrieval task.
88
+ 5. Keep up to 200 eligible queries per Nano split.
89
+ 6. Include qrels-positive documents for the selected queries.
90
+ 7. Fill the corpus from source corpus order up to 10000 documents.
91
+ 8. Remove exact duplicate document text within each split. If a removed duplicate was referenced by qrels, rewrite qrels to the kept document id when the generator records that policy.
92
+ 9. Store document title and body as a single `text` field when the source provides both.
93
+ 10. Generate BM25 top-100 candidates with the tokenization policy recorded per split.
94
+ 11. If a qrels-positive document is missing from the raw BM25 result, insert it into the final `bm25` candidate list by replacing a tail non-positive candidate.
95
+
96
+ ## BM25 Subset Policy
97
+
98
+ The `bm25` config is a candidate subset for first-stage retrieval and reranking. It is not a separate source dataset. Each row contains one query id and a ranked list of corpus ids.
99
+
100
+ BM25 candidates are generated from the selected corpus for each split. The configured candidate cap is top-100. When a qrels-positive document is not present in the raw BM25 result, the missing positive is forced into the final candidate list by replacing a tail candidate that is not positive for that query. Candidate ids are kept unique after replacement.
101
+
102
+ ## Split Mapping
103
+
104
+ | Nano split | Source task | Source dataset | Queries | Corpus | Qrels |
105
+ |---|---|---|---:|---:|---:|
106
+ | `NanoCodeRAGLibraryDocumentationSolutions` | `CodeRAGLibraryDocumentationSolutions` | `code-rag-bench/library-documentation` | 200 | 8683 | 200 |
107
+ | `NanoCodeRAGOnlineTutorials` | `CodeRAGOnlineTutorials` | `code-rag-bench/online-tutorials` | 200 | 9997 | 200 |
108
+ | `NanoCodeRAGProgrammingSolutions` | `CodeRAGProgrammingSolutions` | `code-rag-bench/programming-solutions` | 200 | 984 | 200 |
109
+ | `NanoCodeRAGStackoverflowPosts` | `CodeRAGStackoverflowPosts` | `code-rag-bench/stackoverflow-posts` | 200 | 10000 | 200 |
110
+
111
+ ## BM25 nDCG@10
112
+
113
+ `nDCG@10` is computed from the included BM25 ranking against the included qrels.
114
+
115
+ Tokenizer policy summary: `whitespace:python`.
116
+
117
+ | Nano split | Tokenizer | Forced BM25 positives | BM25 nDCG@10 |
118
+ |---|---|---:|---:|
119
+ | `NanoCodeRAGLibraryDocumentationSolutions` | `whitespace:python` | 85 | 0.2279 |
120
+ | `NanoCodeRAGOnlineTutorials` | `whitespace:python` | 17 | 0.7472 |
121
+ | `NanoCodeRAGProgrammingSolutions` | `whitespace:python` | 149 | 0.0138 |
122
+ | `NanoCodeRAGStackoverflowPosts` | `whitespace:python` | 10 | 0.6902 |
123
+
124
+ ## Skipped Tasks
125
+
126
+ No source tasks were skipped.
127
+
128
+ ## License
129
+
130
+ NanoCodeRAG is a derived dataset. Users must comply with the licenses, terms, and attribution requirements of the upstream datasets and benchmarks.
bm25/NanoCodeRAGLibraryDocumentationSolutions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30518b0039976ec41ddc6f080c6cdf01741a3a3ded80c26613937b14e7c7305e
3
+ size 54807
bm25/NanoCodeRAGOnlineTutorials.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03b55e9a00655d57106547773e390e25dbef5b893e810110799c9b525ff60b58
3
+ size 68821
bm25/NanoCodeRAGProgrammingSolutions.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94d0c0595264bd5fd953fe2065bd209d630c440a119488dbef5a062a1b0301ab
3
+ size 30486
bm25/NanoCodeRAGStackoverflowPosts.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7951af50d6829b4faa12d4bfdb10f4212f38532a9d601b565852e147b09d8b11
3
+ size 67425
manifest.json ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "NanoCodeRAG",
3
+ "benchmark": "CodeRAG",
4
+ "query_limit": 200,
5
+ "doc_limit": 10000,
6
+ "bm25_top_k": 100,
7
+ "splits": [
8
+ {
9
+ "split": "NanoCodeRAGLibraryDocumentationSolutions",
10
+ "source_task": "CodeRAGLibraryDocumentationSolutions",
11
+ "source_type": "Reranking",
12
+ "source_dataset": {
13
+ "path": "code-rag-bench/library-documentation",
14
+ "revision": "b530d3b5a25087d2074e731b76232db85b9e9107"
15
+ },
16
+ "source_eval_splits": [
17
+ "train"
18
+ ],
19
+ "query_limit": 200,
20
+ "doc_limit": 10000,
21
+ "queries": 200,
22
+ "corpus": 8683,
23
+ "qrels": 200,
24
+ "bm25_rows": 200,
25
+ "bm25_top_k": 100,
26
+ "bm25_tokenization": {
27
+ "mode": "whitespace",
28
+ "language": "python",
29
+ "stemmer_algorithm": null,
30
+ "tokenizer_name": null,
31
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
32
+ },
33
+ "qrels_coverage": {
34
+ "total": 200,
35
+ "hits": 200,
36
+ "recall": 1.0
37
+ },
38
+ "ndcg_at_10": 0.22787182501736197,
39
+ "ndcg_at_100": 0.32897685481599515,
40
+ "source_container": "custom_coderag_streaming",
41
+ "source_eval_split_used": "train",
42
+ "source_query_count": 200,
43
+ "source_corpus_count": 10000,
44
+ "source_qrels_query_count": 200,
45
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
46
+ "skipped_queries_missing_text_or_qrels": 0,
47
+ "skipped_duplicate_query_texts": 0,
48
+ "duplicate_doc_texts_removed": 1320,
49
+ "qrels_rewritten_for_duplicate_text": 3,
50
+ "forced_queries": 85,
51
+ "forced_doc_count": 85,
52
+ "missing_positive_doc_count_after_forcing": 0
53
+ },
54
+ {
55
+ "split": "NanoCodeRAGOnlineTutorials",
56
+ "source_task": "CodeRAGOnlineTutorials",
57
+ "source_type": "Reranking",
58
+ "source_dataset": {
59
+ "path": "code-rag-bench/online-tutorials",
60
+ "revision": "095bb77130082e4690d6c3a031997b03487bf6e2"
61
+ },
62
+ "source_eval_splits": [
63
+ "train"
64
+ ],
65
+ "query_limit": 200,
66
+ "doc_limit": 10000,
67
+ "queries": 200,
68
+ "corpus": 9997,
69
+ "qrels": 200,
70
+ "bm25_rows": 200,
71
+ "bm25_top_k": 100,
72
+ "bm25_tokenization": {
73
+ "mode": "whitespace",
74
+ "language": "python",
75
+ "stemmer_algorithm": null,
76
+ "tokenizer_name": null,
77
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
78
+ },
79
+ "qrels_coverage": {
80
+ "total": 200,
81
+ "hits": 200,
82
+ "recall": 1.0
83
+ },
84
+ "ndcg_at_10": 0.7471740687426192,
85
+ "ndcg_at_100": 0.7751689411050038,
86
+ "source_container": "custom_coderag_streaming",
87
+ "source_eval_split_used": "train",
88
+ "source_query_count": 200,
89
+ "source_corpus_count": 10000,
90
+ "source_qrels_query_count": 200,
91
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
92
+ "skipped_queries_missing_text_or_qrels": 0,
93
+ "skipped_duplicate_query_texts": 0,
94
+ "duplicate_doc_texts_removed": 3,
95
+ "qrels_rewritten_for_duplicate_text": 0,
96
+ "forced_queries": 17,
97
+ "forced_doc_count": 17,
98
+ "missing_positive_doc_count_after_forcing": 0
99
+ },
100
+ {
101
+ "split": "NanoCodeRAGProgrammingSolutions",
102
+ "source_task": "CodeRAGProgrammingSolutions",
103
+ "source_type": "Reranking",
104
+ "source_dataset": {
105
+ "path": "code-rag-bench/programming-solutions",
106
+ "revision": "1064f7bba54d5400d4836f5831fe4c2332a566a6"
107
+ },
108
+ "source_eval_splits": [
109
+ "train"
110
+ ],
111
+ "query_limit": 200,
112
+ "doc_limit": 10000,
113
+ "queries": 200,
114
+ "corpus": 984,
115
+ "qrels": 200,
116
+ "bm25_rows": 200,
117
+ "bm25_top_k": 100,
118
+ "bm25_tokenization": {
119
+ "mode": "whitespace",
120
+ "language": "python",
121
+ "stemmer_algorithm": null,
122
+ "tokenizer_name": null,
123
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
124
+ },
125
+ "qrels_coverage": {
126
+ "total": 200,
127
+ "hits": 200,
128
+ "recall": 1.0
129
+ },
130
+ "ndcg_at_10": 0.013766639566113393,
131
+ "ndcg_at_100": 0.1682429769064631,
132
+ "source_container": "custom_coderag_streaming",
133
+ "source_eval_split_used": "train",
134
+ "source_query_count": 200,
135
+ "source_corpus_count": 986,
136
+ "source_qrels_query_count": 200,
137
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
138
+ "skipped_queries_missing_text_or_qrels": 0,
139
+ "skipped_duplicate_query_texts": 0,
140
+ "duplicate_doc_texts_removed": 3,
141
+ "qrels_rewritten_for_duplicate_text": 1,
142
+ "forced_queries": 149,
143
+ "forced_doc_count": 149,
144
+ "missing_positive_doc_count_after_forcing": 0
145
+ },
146
+ {
147
+ "split": "NanoCodeRAGStackoverflowPosts",
148
+ "source_task": "CodeRAGStackoverflowPosts",
149
+ "source_type": "Reranking",
150
+ "source_dataset": {
151
+ "path": "code-rag-bench/stackoverflow-posts",
152
+ "revision": "04e05d86cb0ac467b29a5d87f4c56eac99dfc0a4"
153
+ },
154
+ "source_eval_splits": [
155
+ "train"
156
+ ],
157
+ "query_limit": 200,
158
+ "doc_limit": 10000,
159
+ "queries": 200,
160
+ "corpus": 10000,
161
+ "qrels": 200,
162
+ "bm25_rows": 200,
163
+ "bm25_top_k": 100,
164
+ "bm25_tokenization": {
165
+ "mode": "whitespace",
166
+ "language": "python",
167
+ "stemmer_algorithm": null,
168
+ "tokenizer_name": null,
169
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
170
+ },
171
+ "qrels_coverage": {
172
+ "total": 200,
173
+ "hits": 200,
174
+ "recall": 1.0
175
+ },
176
+ "ndcg_at_10": 0.6901992073523491,
177
+ "ndcg_at_100": 0.7306863125004465,
178
+ "source_container": "custom_coderag_streaming",
179
+ "source_eval_split_used": "train",
180
+ "source_query_count": 200,
181
+ "source_corpus_count": 10000,
182
+ "source_qrels_query_count": 200,
183
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
184
+ "skipped_queries_missing_text_or_qrels": 0,
185
+ "skipped_duplicate_query_texts": 0,
186
+ "duplicate_doc_texts_removed": 0,
187
+ "qrels_rewritten_for_duplicate_text": 0,
188
+ "forced_queries": 10,
189
+ "forced_doc_count": 10,
190
+ "missing_positive_doc_count_after_forcing": 0
191
+ }
192
+ ],
193
+ "skipped": []
194
+ }
metadata/NanoCodeRAGLibraryDocumentationSolutions.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGLibraryDocumentationSolutions",
3
+ "source_task": "CodeRAGLibraryDocumentationSolutions",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/library-documentation",
7
+ "revision": "b530d3b5a25087d2074e731b76232db85b9e9107"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 8683,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.22787182501736197,
32
+ "ndcg_at_100": 0.32897685481599515,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 1320,
42
+ "qrels_rewritten_for_duplicate_text": 3,
43
+ "forced_queries": 85,
44
+ "forced_doc_count": 85,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
metadata/NanoCodeRAGOnlineTutorials.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGOnlineTutorials",
3
+ "source_task": "CodeRAGOnlineTutorials",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/online-tutorials",
7
+ "revision": "095bb77130082e4690d6c3a031997b03487bf6e2"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 9997,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.7471740687426192,
32
+ "ndcg_at_100": 0.7751689411050038,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 3,
42
+ "qrels_rewritten_for_duplicate_text": 0,
43
+ "forced_queries": 17,
44
+ "forced_doc_count": 17,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
metadata/NanoCodeRAGProgrammingSolutions.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGProgrammingSolutions",
3
+ "source_task": "CodeRAGProgrammingSolutions",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/programming-solutions",
7
+ "revision": "1064f7bba54d5400d4836f5831fe4c2332a566a6"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 984,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.013766639566113393,
32
+ "ndcg_at_100": 0.1682429769064631,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 986,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 3,
42
+ "qrels_rewritten_for_duplicate_text": 1,
43
+ "forced_queries": 149,
44
+ "forced_doc_count": 149,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
metadata/NanoCodeRAGStackoverflowPosts.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "split": "NanoCodeRAGStackoverflowPosts",
3
+ "source_task": "CodeRAGStackoverflowPosts",
4
+ "source_type": "Reranking",
5
+ "source_dataset": {
6
+ "path": "code-rag-bench/stackoverflow-posts",
7
+ "revision": "04e05d86cb0ac467b29a5d87f4c56eac99dfc0a4"
8
+ },
9
+ "source_eval_splits": [
10
+ "train"
11
+ ],
12
+ "query_limit": 200,
13
+ "doc_limit": 10000,
14
+ "queries": 200,
15
+ "corpus": 10000,
16
+ "qrels": 200,
17
+ "bm25_rows": 200,
18
+ "bm25_top_k": 100,
19
+ "bm25_tokenization": {
20
+ "mode": "whitespace",
21
+ "language": "python",
22
+ "stemmer_algorithm": null,
23
+ "tokenizer_name": null,
24
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
25
+ },
26
+ "qrels_coverage": {
27
+ "total": 200,
28
+ "hits": 200,
29
+ "recall": 1.0
30
+ },
31
+ "ndcg_at_10": 0.6901992073523491,
32
+ "ndcg_at_100": 0.7306863125004465,
33
+ "source_container": "custom_coderag_streaming",
34
+ "source_eval_split_used": "train",
35
+ "source_query_count": 200,
36
+ "source_corpus_count": 10000,
37
+ "source_qrels_query_count": 200,
38
+ "skipped_queries_with_more_than_bm25_top_k_positives": 0,
39
+ "skipped_queries_missing_text_or_qrels": 0,
40
+ "skipped_duplicate_query_texts": 0,
41
+ "duplicate_doc_texts_removed": 0,
42
+ "qrels_rewritten_for_duplicate_text": 0,
43
+ "forced_queries": 10,
44
+ "forced_doc_count": 10,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ }
nano_bm25_subset_config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "NanoCodeRAG",
3
+ "benchmark": "CodeRAG",
4
+ "query_limit": 200,
5
+ "doc_limit": 10000,
6
+ "bm25_top_k": 100,
7
+ "candidate_policy": "Rank the selected split corpus with BM25, keep up to top-100 candidates, and force qrels-positive documents into the final candidate list when missing.",
8
+ "splits": [
9
+ {
10
+ "split_name": "NanoCodeRAGLibraryDocumentationSolutions",
11
+ "source_task": "CodeRAGLibraryDocumentationSolutions",
12
+ "queries": 200,
13
+ "corpus": 8683,
14
+ "qrels": 200,
15
+ "tokenization_plan": {
16
+ "mode": "whitespace",
17
+ "language": "python",
18
+ "stemmer_algorithm": null,
19
+ "tokenizer_name": null,
20
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
21
+ },
22
+ "ndcg_at_10": 0.22787182501736197,
23
+ "ndcg_at_100": 0.32897685481599515,
24
+ "forced_queries": 85,
25
+ "forced_doc_count": 85,
26
+ "missing_positive_doc_count_after_forcing": 0
27
+ },
28
+ {
29
+ "split_name": "NanoCodeRAGOnlineTutorials",
30
+ "source_task": "CodeRAGOnlineTutorials",
31
+ "queries": 200,
32
+ "corpus": 9997,
33
+ "qrels": 200,
34
+ "tokenization_plan": {
35
+ "mode": "whitespace",
36
+ "language": "python",
37
+ "stemmer_algorithm": null,
38
+ "tokenizer_name": null,
39
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
40
+ },
41
+ "ndcg_at_10": 0.7471740687426192,
42
+ "ndcg_at_100": 0.7751689411050038,
43
+ "forced_queries": 17,
44
+ "forced_doc_count": 17,
45
+ "missing_positive_doc_count_after_forcing": 0
46
+ },
47
+ {
48
+ "split_name": "NanoCodeRAGProgrammingSolutions",
49
+ "source_task": "CodeRAGProgrammingSolutions",
50
+ "queries": 200,
51
+ "corpus": 984,
52
+ "qrels": 200,
53
+ "tokenization_plan": {
54
+ "mode": "whitespace",
55
+ "language": "python",
56
+ "stemmer_algorithm": null,
57
+ "tokenizer_name": null,
58
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
59
+ },
60
+ "ndcg_at_10": 0.013766639566113393,
61
+ "ndcg_at_100": 0.1682429769064631,
62
+ "forced_queries": 149,
63
+ "forced_doc_count": 149,
64
+ "missing_positive_doc_count_after_forcing": 0
65
+ },
66
+ {
67
+ "split_name": "NanoCodeRAGStackoverflowPosts",
68
+ "source_task": "CodeRAGStackoverflowPosts",
69
+ "queries": 200,
70
+ "corpus": 10000,
71
+ "qrels": 200,
72
+ "tokenization_plan": {
73
+ "mode": "whitespace",
74
+ "language": "python",
75
+ "stemmer_algorithm": null,
76
+ "tokenizer_name": null,
77
+ "reason": "CodeRAG contains code-heavy text; use deterministic whitespace tokenization."
78
+ },
79
+ "ndcg_at_10": 0.6901992073523491,
80
+ "ndcg_at_100": 0.7306863125004465,
81
+ "forced_queries": 10,
82
+ "forced_doc_count": 10,
83
+ "missing_positive_doc_count_after_forcing": 0
84
+ }
85
+ ]
86
+ }