Datasets:
_id stringlengths 1 3 | text stringlengths 40 43.7k |
|---|---|
0 | tf.AggregationMethod View source on GitHub A class listing aggregation methods used to combine gradients. View aliases Compat aliases for migration |
1 | tf.argsort View source on GitHub Returns the indices of a tensor that give its sorted order along an axis. View aliases Compat aliases for migration |
3 | tf.audio.decode_wav Decode a 16-bit PCM WAV file to a float tensor. View aliases Compat aliases for migration |
4 | tf.audio.encode_wav Encode audio data using the WAV file format. View aliases Compat aliases for migration |
6 | tf.autodiff.ForwardAccumulator Computes Jacobian-vector products ("JVP"s) using forward-mode autodiff. |
7 | Module: tf.autograph Conversion of plain Python into TensorFlow graph code. |
9 | tf.autograph.experimental.do_not_convert View source on GitHub Decorator that suppresses the conversion of a function. View aliases Compat aliases for migration |
10 | tf.autograph.experimental.Feature View source on GitHub This enumeration represents optional conversion options. View aliases Compat aliases for migration |
11 | tf.autograph.experimental.set_loop_options Specifies additional arguments to be passed to the enclosing while_loop. View aliases Compat aliases for migration |
12 | tf.autograph.set_verbosity View source on GitHub Sets the AutoGraph verbosity level. View aliases Compat aliases for migration |
13 | tf.autograph.to_code View source on GitHub Returns the source code generated by AutoGraph, as a string. |
14 | tf.autograph.to_graph View source on GitHub Converts a Python entity into a TensorFlow graph. |
15 | tf.autograph.trace View source on GitHub Traces argument information at compilation time. View aliases Compat aliases for migration |
16 | tf.batch_to_space View source on GitHub BatchToSpace for N-D tensors of type T. |
17 | tf.bitcast Bitcasts a tensor from one type to another without copying data. View aliases Compat aliases for migration |
19 | tf.bitwise.bitwise_and Elementwise computes the bitwise AND of x and y. View aliases Compat aliases for migration |
20 | tf.bitwise.bitwise_or Elementwise computes the bitwise OR of x and y. View aliases Compat aliases for migration |
21 | tf.bitwise.bitwise_xor Elementwise computes the bitwise XOR of x and y. View aliases Compat aliases for migration |
22 | tf.bitwise.invert Invert (flip) each bit of supported types; for example, type uint8 value 01010101 becomes 10101010. View aliases Compat aliases for migration |
23 | tf.bitwise.left_shift Elementwise computes the bitwise left-shift of x and y. View aliases Compat aliases for migration |
24 | tf.bitwise.right_shift Elementwise computes the bitwise right-shift of x and y. View aliases Compat aliases for migration |
25 | tf.boolean_mask View source on GitHub Apply boolean mask to tensor. |
26 | tf.broadcast_dynamic_shape View source on GitHub Computes the shape of a broadcast given symbolic shapes. View aliases Compat aliases for migration |
27 | tf.broadcast_static_shape View source on GitHub Computes the shape of a broadcast given known shapes. View aliases Compat aliases for migration |
28 | tf.broadcast_to Broadcast an array for a compatible shape. View aliases Compat aliases for migration |
29 | tf.case View source on GitHub Create a case operation. |
30 | tf.cast View source on GitHub Casts a tensor to a new type. View aliases Main aliases |
31 | tf.clip_by_global_norm View source on GitHub Clips values of multiple tensors by the ratio of the sum of their norms. View aliases Compat aliases for migration |
32 | tf.clip_by_norm View source on GitHub Clips tensor values to a maximum L2-norm. View aliases Compat aliases for migration |
33 | tf.clip_by_value View source on GitHub Clips tensor values to a specified min and max. View aliases Compat aliases for migration |
34 | Module: tf.compat Compatibility functions. The tf.compat module contains two sets of compatibility functions. Tensorflow 1.x and 2.x APIs The compat.v1 and compat.v2 submodules provide a complete copy of both the v1 and v2 APIs for backwards and forwards compatibility across TensorFlow versions 1.x and 2.x. See the mig... |
35 | tf.compat.as_bytes View source on GitHub Converts bytearray, bytes, or unicode python input types to bytes. View aliases Compat aliases for migration |
36 | tf.compat.as_str View aliases Compat aliases for migration |
37 | tf.compat.as_str_any View source on GitHub Converts input to str type. View aliases Compat aliases for migration |
38 | tf.compat.as_text View source on GitHub Converts any string-like python input types to unicode. View aliases Compat aliases for migration |
39 | tf.compat.dimension_at_index View source on GitHub Compatibility utility required to allow for both V1 and V2 behavior in TF. View aliases Compat aliases for migration |
40 | tf.compat.dimension_value View source on GitHub Compatibility utility required to allow for both V1 and V2 behavior in TF. View aliases Compat aliases for migration |
41 | tf.compat.forward_compatibility_horizon View source on GitHub Context manager for testing forward compatibility of generated graphs. View aliases Compat aliases for migration |
42 | tf.compat.forward_compatible View source on GitHub Return true if the forward compatibility window has expired. View aliases Compat aliases for migration |
43 | tf.compat.path_to_str View source on GitHub Converts input which is a PathLike object to str type. View aliases Compat aliases for migration |
44 | Module: tf.compat.v1 View source on GitHub Bring in all of the public TensorFlow interface into this module. Modules app module: Generic entry point script. audio module: Public API for tf.audio namespace. autograph module: Conversion of plain Python into TensorFlow graph code. bitwise module: Operations for m... |
45 | tf.compat.v1.add_check_numerics_ops Connect a tf.debugging.check_numerics to every floating point tensor. |
46 | tf.compat.v1.add_to_collection Wrapper for Graph.add_to_collection() using the default graph. |
47 | tf.compat.v1.add_to_collections Wrapper for Graph.add_to_collections() using the default graph. |
48 | tf.compat.v1.all_variables Use tf.compat.v1.global_variables instead. (deprecated) |
50 | tf.compat.v1.app.run Runs the program with an optional 'main' function and 'argv' list. |
51 | tf.compat.v1.argmax Returns the index with the largest value across axes of a tensor. (deprecated arguments) View aliases Compat aliases for migration |
52 | tf.compat.v1.argmin Returns the index with the smallest value across axes of a tensor. (deprecated arguments) View aliases Compat aliases for migration |
53 | tf.compat.v1.arg_max Returns the index with the largest value across dimensions of a tensor. |
54 | tf.compat.v1.arg_min Returns the index with the smallest value across dimensions of a tensor. |
55 | tf.compat.v1.assert_equal Assert the condition x == y holds element-wise. View aliases Compat aliases for migration |
56 | tf.compat.v1.assert_greater Assert the condition x > y holds element-wise. View aliases Compat aliases for migration |
57 | tf.compat.v1.assert_greater_equal Assert the condition x >= y holds element-wise. View aliases Compat aliases for migration |
58 | tf.compat.v1.assert_integer Assert that x is of integer dtype. View aliases Compat aliases for migration |
59 | tf.compat.v1.assert_less Assert the condition x < y holds element-wise. View aliases Compat aliases for migration |
60 | tf.compat.v1.assert_less_equal Assert the condition x <= y holds element-wise. View aliases Compat aliases for migration |
61 | tf.compat.v1.assert_near Assert the condition x and y are close element-wise. View aliases Compat aliases for migration |
62 | tf.compat.v1.assert_negative Assert the condition x < 0 holds element-wise. View aliases Compat aliases for migration |
63 | tf.compat.v1.assert_none_equal Assert the condition x != y holds element-wise. View aliases Compat aliases for migration |
64 | tf.compat.v1.assert_non_negative Assert the condition x >= 0 holds element-wise. View aliases Compat aliases for migration |
65 | tf.compat.v1.assert_non_positive Assert the condition x <= 0 holds element-wise. View aliases Compat aliases for migration |
66 | tf.compat.v1.assert_positive Assert the condition x > 0 holds element-wise. View aliases Compat aliases for migration |
67 | tf.compat.v1.assert_rank Assert x has rank equal to rank. View aliases Compat aliases for migration |
68 | tf.compat.v1.assert_rank_at_least Assert x has rank equal to rank or higher. View aliases Compat aliases for migration |
69 | tf.compat.v1.assert_rank_in Assert x has rank in ranks. View aliases Compat aliases for migration |
70 | tf.compat.v1.assert_scalar Asserts that the given tensor is a scalar (i.e. zero-dimensional). View aliases Compat aliases for migration |
71 | tf.compat.v1.assert_type Statically asserts that the given Tensor is of the specified type. View aliases Compat aliases for migration |
72 | tf.compat.v1.assert_variables_initialized Returns an Op to check if variables are initialized. |
73 | tf.compat.v1.assign Update ref by assigning value to it. |
74 | tf.compat.v1.assign_add Update ref by adding value to it. |
75 | tf.compat.v1.assign_sub Update ref by subtracting value from it. |
76 | tf.compat.v1.AttrValue A ProtocolMessage |
77 | tf.compat.v1.AttrValue.ListValue A ProtocolMessage |
79 | Module: tf.compat.v1.autograph Conversion of plain Python into TensorFlow graph code. |
81 | tf.compat.v1.autograph.to_code Returns the source code generated by AutoGraph, as a string. |
82 | tf.compat.v1.autograph.to_graph Converts a Python entity into a TensorFlow graph. |
83 | tf.compat.v1.batch_gather Gather slices from params according to indices with leading batch dims. (deprecated) |
84 | tf.compat.v1.batch_scatter_update Generalization of tf.compat.v1.scatter_update to axis different than 0. (deprecated) |
85 | tf.compat.v1.batch_to_space BatchToSpace for 4-D tensors of type T. |
86 | tf.compat.v1.batch_to_space_nd BatchToSpace for N-D tensors of type T. View aliases Compat aliases for migration |
87 | tf.compat.v1.bincount Counts the number of occurrences of each value in an integer array. View aliases Compat aliases for migration |
89 | tf.compat.v1.boolean_mask Apply boolean mask to tensor. |
90 | tf.compat.v1.case Create a case operation. |
91 | tf.compat.v1.clip_by_average_norm Clips tensor values to a maximum average L2-norm. (deprecated) |
92 | tf.compat.v1.colocate_with DEPRECATED FUNCTION |
93 | Module: tf.compat.v1.compat Compatibility functions. The tf.compat module contains two sets of compatibility functions. Tensorflow 1.x and 2.x APIs The compat.v1 and compat.v2 submodules provide a complete copy of both the v1 and v2 APIs for backwards and forwards compatibility across TensorFlow versions 1.x and 2.x. S... |
94 | tf.compat.v1.cond Return true_fn() if the predicate pred is true else false_fn(). (deprecated arguments) |
95 | tf.compat.v1.ConditionalAccumulator A conditional accumulator for aggregating gradients. Inherits From: ConditionalAccumulatorBase |
96 | tf.compat.v1.ConditionalAccumulatorBase A conditional accumulator for aggregating gradients. |
101 | tf.compat.v1.ConfigProto A ProtocolMessage |
102 | tf.compat.v1.ConfigProto.DeviceCountEntry A ProtocolMessage |
103 | tf.compat.v1.ConfigProto.Experimental A ProtocolMessage |
104 | tf.compat.v1.confusion_matrix Computes the confusion matrix from predictions and labels. View aliases Compat aliases for migration |
105 | tf.compat.v1.constant Creates a constant tensor. |
106 | tf.compat.v1.container Wrapper for Graph.container() using the default graph. |
107 | tf.compat.v1.control_flow_v2_enabled Returns True if v2 control flow is enabled. |
108 | tf.compat.v1.convert_to_tensor Converts the given value to a Tensor. |
109 | tf.compat.v1.convert_to_tensor_or_indexed_slices Converts the given object to a Tensor or an IndexedSlices. |
110 | tf.compat.v1.convert_to_tensor_or_sparse_tensor Converts value to a SparseTensor or Tensor. |
111 | tf.compat.v1.count_nonzero Computes number of nonzero elements across dimensions of a tensor. (deprecated arguments) (deprecated arguments) View aliases Compat aliases for migration |
NanoCodeRAG
This dataset is a Nano-style retrieval dataset for HAKARI-bench.
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.
Usage
from datasets import load_dataset
dataset_id = "hakari-bench/NanoCodeRAG"
split = "NanoCodeRAGLibraryDocumentationSolutions"
queries = load_dataset(dataset_id, "queries", split=split)
corpus = load_dataset(dataset_id, "corpus", split=split)
qrels = load_dataset(dataset_id, "qrels", split=split)
reranking_candidates = load_dataset(dataset_id, "reranking_hybrid", split=split)
Data Layout
This dataset uses six Hugging Face Datasets configs:
corpus: documents with_idandtextqueries: queries with_idandtextqrels: positive relevance labels withquery-idandcorpus-idbm25: BM25 candidate lists withquery-idandcorpus-idsharrier_oss_v1_270m: dense candidate lists frommicrosoft/harrier-oss-v1-270mreranking_hybrid: RRF candidate lists built frombm25andharrier_oss_v1_270m
Each config has the same Nano split names.
Candidate Construction
bm25: local BM25 top-500 with automatic language-aware tokenization. The resolved tokenizer is shown in the Candidate Quality table, for examplewordseg@ja.harrier_oss_v1_270m: dense top-500 frommicrosoft/harrier-oss-v1-270m. In tables this is shown asDense; Dense meansmicrosoft/harrier-oss-v1-270mwith theweb_search_queryprompt for queries and cosine similarity over normalized embeddings.reranking_hybrid: RRF overbm25andharrier_oss_v1_270musingrrf_k=100, keeping the RRF top-100.
Safeguard means rank 101 is appended only when RRF top-100 contains no qrels-positive document.
Split Statistics
Length statistics are character counts computed with len(str(text)).
| Nano split | Queries | Corpus | Qrels | Query chars avg | Query chars p50 | Query chars p75 | Doc chars avg | Doc chars p50 | Doc chars p75 |
|---|---|---|---|---|---|---|---|---|---|
| NanoCodeRAGLibraryDocumentationSolutions | 200 | 8683 | 200 | 397.4 | 110.0 | 127.2 | 2045.7 | 765.0 | 1842.5 |
| NanoCodeRAGOnlineTutorials | 200 | 9997 | 200 | 51.9 | 47.0 | 63.0 | 5722.5 | 3419.0 | 6795.0 |
| NanoCodeRAGProgrammingSolutions | 200 | 984 | 200 | 78.3 | 78.0 | 89.2 | 189.1 | 148.5 | 227.2 |
| NanoCodeRAGStackoverflowPosts | 200 | 10000 | 200 | 209.8 | 185.5 | 269.0 | 4735.0 | 2864.5 | 5301.0 |
Candidate Quality
nDCG@10 and Recall@100 are computed from the included candidate rankings against the included qrels, then reported as 0-100 scores such as 52.45. Recall@100 uses only the top 100 candidates; an optional rank-101 safeguard positive is not counted in Recall@100.
Dense means microsoft/harrier-oss-v1-270m with the web_search_query prompt and cosine similarity.
| Nano split | BM25 tokenizer | BM25 nDCG@10 | Dense nDCG@10 | Hybrid nDCG@10 | BM25 Recall@100 | Dense Recall@100 | Hybrid Recall@100 | Hybrid candidates | Safeguard positives |
|---|---|---|---|---|---|---|---|---|---|
| Mean | - | 58.23 | 82.96 | 66.85 | 80.50 | 95.12 | 97.75 | - | 18 |
| NanoCodeRAGLibraryDocumentationSolutions | regex | 68.67 | 76.45 | 75.44 | 92.00 | 92.50 | 94.50 | 100-101 | 11 |
| NanoCodeRAGOnlineTutorials | regex | 81.75 | 90.27 | 86.73 | 97.00 | 95.50 | 100.00 | 100 | 0 |
| NanoCodeRAGProgrammingSolutions | regex | 5.12 | 76.46 | 21.51 | 36.50 | 96.50 | 96.50 | 100-101 | 7 |
| NanoCodeRAGStackoverflowPosts | regex | 77.37 | 88.65 | 83.73 | 96.50 | 96.00 | 100.00 | 100 | 0 |
Hybrid Safeguard Summary
- Safeguard positives: 18
- Rows limited by corpus size: 0
- Metadata file:
reranking_hybrid_metadata.json
Source Links
- Source benchmark:
CodeRAG code-rag-bench/library-documentation: https://huggingface.co/datasets/code-rag-bench/library-documentationcode-rag-bench/online-tutorials: https://huggingface.co/datasets/code-rag-bench/online-tutorialscode-rag-bench/programming-solutions: https://huggingface.co/datasets/code-rag-bench/programming-solutionscode-rag-bench/stackoverflow-posts: https://huggingface.co/datasets/code-rag-bench/stackoverflow-posts
License
NanoCodeRAG is a derived dataset. Users must comply with the licenses, terms, and attribution requirements of the upstream datasets and benchmarks.
- Downloads last month
- 190