The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 18 new columns ({'router_label', 'oof_predicted_name', 'query_avg_token_length', 'top5_document_overlap', 'gold_filename', 'digit_token_ratio', 'uppercase_token_ratio', 'bm25_relative_margin', 'top5_document_jaccard', 'oof_p_dense', 'bm25_gold_rank', 'dense_gold_rank', 'oof_p_balanced', 'dense_relative_margin', 'oof_p_bm25', 'query_terms', 'router_label_name', 'oof_predicted_label'}) and 10 missing columns ({'is_answerable', 'semantic_evidence_mean_top3', 'topk_document_overlap', 'question_terms', 'topk_document_jaccard', 'semantic_evidence_top1', 'semantic_evidence_margin', 'oof_answerable_probability', 'adaptive_margin', 'adaptive_top1'}).
This happened while the csv dataset builder was generating data using
hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison/results/router_train_oof_comparison.csv (at revision 0d3b15b633d10959f336f3fea25ff324993ce2d2), ['hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison@0d3b15b633d10959f336f3fea25ff324993ce2d2/results/abstention_train_oof_scores_comparison.csv', 'hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison@0d3b15b633d10959f336f3fea25ff324993ce2d2/results/router_train_oof_comparison.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
id: string
gold_filename: string
bm25_gold_rank: double
dense_gold_rank: double
router_label: int64
router_label_name: string
query_terms: double
query_avg_token_length: double
technical_token_ratio: double
digit_token_ratio: double
uppercase_token_ratio: double
bm25_top1: double
bm25_margin: double
bm25_relative_margin: double
dense_top1: double
dense_margin: double
dense_relative_margin: double
bm25_dense_top1_agree: double
top5_document_overlap: double
top5_document_jaccard: double
oof_predicted_label: int64
oof_predicted_name: string
oof_p_bm25: double
oof_p_balanced: double
oof_p_dense: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 3558
to
{'id': Value('string'), 'is_answerable': Value('int64'), 'question_terms': Value('float64'), 'technical_token_ratio': Value('float64'), 'bm25_top1': Value('float64'), 'bm25_margin': Value('float64'), 'dense_top1': Value('float64'), 'dense_margin': Value('float64'), 'bm25_dense_top1_agree': Value('float64'), 'topk_document_overlap': Value('float64'), 'topk_document_jaccard': Value('float64'), 'adaptive_top1': Value('float64'), 'adaptive_margin': Value('float64'), 'semantic_evidence_top1': Value('float64'), 'semantic_evidence_margin': Value('float64'), 'semantic_evidence_mean_top3': Value('float64'), 'oof_answerable_probability': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 18 new columns ({'router_label', 'oof_predicted_name', 'query_avg_token_length', 'top5_document_overlap', 'gold_filename', 'digit_token_ratio', 'uppercase_token_ratio', 'bm25_relative_margin', 'top5_document_jaccard', 'oof_p_dense', 'bm25_gold_rank', 'dense_gold_rank', 'oof_p_balanced', 'dense_relative_margin', 'oof_p_bm25', 'query_terms', 'router_label_name', 'oof_predicted_label'}) and 10 missing columns ({'is_answerable', 'semantic_evidence_mean_top3', 'topk_document_overlap', 'question_terms', 'topk_document_jaccard', 'semantic_evidence_top1', 'semantic_evidence_margin', 'oof_answerable_probability', 'adaptive_margin', 'adaptive_top1'}).
This happened while the csv dataset builder was generating data using
hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison/results/router_train_oof_comparison.csv (at revision 0d3b15b633d10959f336f3fea25ff324993ce2d2), ['hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison@0d3b15b633d10959f336f3fea25ff324993ce2d2/results/abstention_train_oof_scores_comparison.csv', 'hf://datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison@0d3b15b633d10959f336f3fea25ff324993ce2d2/results/router_train_oof_comparison.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
id string | is_answerable int64 | question_terms float64 | technical_token_ratio float64 | bm25_top1 float64 | bm25_margin float64 | dense_top1 float64 | dense_margin float64 | bm25_dense_top1_agree float64 | topk_document_overlap float64 | topk_document_jaccard float64 | adaptive_top1 float64 | adaptive_margin float64 | semantic_evidence_top1 float64 | semantic_evidence_margin float64 | semantic_evidence_mean_top3 float64 | oof_answerable_probability float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TRAIN_Q000 | 1 | 76 | 0.135135 | 239.287728 | 136.767771 | 0.822223 | 0.146394 | 1 | 1 | 0.111111 | 0.032911 | 0.003348 | 0.822223 | 0.163432 | 0.710872 | 0.999728 |
TRAIN_Q001 | 1 | 38 | 0.052632 | 132.828578 | 30.316061 | 0.837237 | 0.023049 | 1 | 4 | 0.666667 | 0.037253 | 0.000601 | 0.837237 | 0.023049 | 0.777201 | 0.838887 |
TRAIN_Q002 | 0 | 96 | 0.052083 | 168.480502 | 1.130883 | 0.728659 | 0.013739 | 1 | 1 | 0.111111 | 0.03945 | 0.00094 | 0.728659 | 0.017615 | 0.715764 | 0.534786 |
TRAIN_Q003 | 1 | 51 | 0.137255 | 88.726581 | 5.657534 | 0.798737 | 0.018367 | 0 | 3 | 0.428571 | 0.060212 | 0.004454 | 0.798737 | 0.064322 | 0.753857 | 0.344422 |
TRAIN_Q004 | 0 | 62 | 0.222222 | 167.84089 | 4.559088 | 0.888206 | 0.0152 | 1 | 5 | 1 | 0.048577 | 0.000784 | 0.888206 | 0.0152 | 0.874549 | 0.347731 |
TRAIN_Q005 | 1 | 20 | 0.15 | 26.203546 | 0.771341 | 0.649227 | 0.046214 | 0 | 1 | 0.111111 | 0.062673 | 0.004686 | 0.649228 | 0.046214 | 0.614982 | 0.431251 |
TRAIN_Q006 | 1 | 36 | 0.166667 | 93.612246 | 18.031574 | 0.745104 | 0.007112 | 1 | 2 | 0.25 | 0.03926 | 0.000936 | 0.745104 | 0.007112 | 0.72764 | 0.628689 |
TRAIN_Q007 | 1 | 152 | 0.137255 | 219.856406 | 29.657192 | 0.806978 | 0.011044 | 1 | 3 | 0.428571 | 0.038425 | 0.00062 | 0.806978 | 0.011044 | 0.798517 | 0.684224 |
TRAIN_Q008 | 1 | 29 | 0.148148 | 50.043306 | 3.196381 | 0.703917 | 0.012085 | 1 | 2 | 0.25 | 0.050196 | 0.001235 | 0.703917 | 0.012088 | 0.687073 | 0.446532 |
TRAIN_Q009 | 1 | 47 | 0.019608 | 136.115113 | 47.69389 | 0.674003 | 0.035719 | 1 | 1 | 0.111111 | 0.037587 | 0.004682 | 0.674003 | 0.035719 | 0.64111 | 0.912742 |
TRAIN_Q010 | 1 | 74 | 0.144928 | 125.534236 | 58.186163 | 0.661722 | 0.003061 | 1 | 1 | 0.111111 | 0.042318 | 0.009599 | 0.661722 | 0.009646 | 0.652315 | 0.736878 |
TRAIN_Q011 | 1 | 73 | 0.027778 | 125.840646 | 30.664071 | 0.720615 | 0.022397 | 0 | 3 | 0.428571 | 0.058909 | 0.000167 | 0.720615 | 0.022397 | 0.703667 | 0.513131 |
TRAIN_Q012 | 1 | 24 | 0 | 62.270997 | 1.631379 | 0.788679 | 0.014738 | 0 | 2 | 0.25 | 0.060895 | 0.000734 | 0.788679 | 0.014738 | 0.777815 | 0.380811 |
TRAIN_Q013 | 1 | 28 | 0.285714 | 120.664406 | 55.66909 | 0.80973 | 0.158931 | 1 | 3 | 0.428571 | 0.03367 | 0.00157 | 0.80973 | 0.169667 | 0.695925 | 0.996938 |
TRAIN_Q014 | 1 | 77 | 0.066667 | 183.466598 | 48.084241 | 0.829362 | 0.014667 | 1 | 2 | 0.25 | 0.034042 | 0.00081 | 0.829362 | 0.014667 | 0.81417 | 0.850041 |
TRAIN_Q015 | 1 | 53 | 0.12963 | 174.569063 | 4.552157 | 0.877789 | 0.011325 | 1 | 5 | 1 | 0.046066 | 0.000743 | 0.877789 | 0.011325 | 0.865708 | 0.390431 |
TRAIN_Q016 | 1 | 29 | 0.068966 | 64.603233 | 15.090663 | 0.736271 | 0.044528 | 1 | 2 | 0.25 | 0.042267 | 0.002045 | 0.736271 | 0.044528 | 0.705181 | 0.739269 |
TRAIN_Q017 | 1 | 43 | 0.093023 | 70.321251 | 8.879624 | 0.664686 | 0.005131 | 0 | 0 | 0 | 0.060213 | 0.002994 | 0.664686 | 0.005131 | 0.661257 | 0.257136 |
TRAIN_Q018 | 1 | 30 | 0 | 87.171284 | 32.530174 | 0.791309 | 0.004345 | 1 | 4 | 0.666667 | 0.045703 | 0.000737 | 0.791309 | 0.004345 | 0.786848 | 0.635141 |
TRAIN_Q019 | 1 | 105 | 0.04 | 189.903351 | 55.640449 | 0.747905 | 0.03498 | 1 | 3 | 0.428571 | 0.03621 | 0.001609 | 0.747905 | 0.03498 | 0.719249 | 0.864112 |
TRAIN_Q020 | 1 | 97 | 0.182796 | 158.588027 | 4.980217 | 0.74147 | 0.012369 | 0 | 4 | 0.666667 | 0.060888 | 0.001399 | 0.725537 | 0.005428 | 0.720665 | 0.199223 |
TRAIN_Q021 | 0 | 55 | 0.127273 | 198.653747 | 4.481144 | 0.870376 | 0.011692 | 1 | 5 | 1 | 0.042767 | 0.00069 | 0.870376 | 0.011693 | 0.857863 | 0.462069 |
TRAIN_Q022 | 0 | 88 | 0.211765 | 256.835966 | 52.737493 | 0.823869 | 0.064346 | 1 | 2 | 0.25 | 0.032992 | 0.000532 | 0.82387 | 0.064346 | 0.772219 | 0.985293 |
TRAIN_Q023 | 0 | 62 | 0.209677 | 171.266697 | 4.661493 | 0.883293 | 0.014112 | 1 | 5 | 1 | 0.04823 | 0.000778 | 0.883293 | 0.014112 | 0.870828 | 0.34878 |
TRAIN_Q024 | 1 | 88 | 0.056818 | 154.070658 | 20.229801 | 0.758405 | 0.002233 | 0 | 3 | 0.428571 | 0.058965 | 0.00087 | 0.758405 | 0.002233 | 0.752892 | 0.349279 |
TRAIN_Q025 | 0 | 59 | 0.05 | 101.667784 | 5.697499 | 0.702436 | 0.001242 | 0 | 1 | 0.111111 | 0.058658 | 0.003331 | 0.702436 | 0.012973 | 0.693398 | 0.310503 |
TRAIN_Q026 | 1 | 47 | 0.162791 | 60.312417 | 4.203498 | 0.728048 | 0.012298 | 1 | 1 | 0.111111 | 0.04857 | 0.000804 | 0.728048 | 0.012298 | 0.719829 | 0.445231 |
TRAIN_Q027 | 1 | 119 | 0.132231 | 414.487603 | 293.270649 | 0.820253 | 0.052918 | 1 | 2 | 0.25 | 0.032788 | 0.000529 | 0.820253 | 0.052918 | 0.774011 | 0.999925 |
TRAIN_Q028 | 1 | 38 | 0.157895 | 138.128257 | 19.363293 | 0.892931 | 0.02634 | 1 | 3 | 0.428571 | 0.034584 | 0.001086 | 0.892931 | 0.02634 | 0.87242 | 0.85971 |
TRAIN_Q029 | 1 | 89 | 0.163043 | 167.710453 | 55.465854 | 0.760878 | 0.032776 | 1 | 1 | 0.111111 | 0.035209 | 0.008351 | 0.760878 | 0.032776 | 0.738006 | 0.899612 |
TRAIN_Q030 | 1 | 10 | 0.181818 | 31.034203 | 5.552925 | 0.665539 | 0.008247 | 1 | 3 | 0.428571 | 0.052814 | 0.002058 | 0.665539 | 0.01751 | 0.653737 | 0.409446 |
TRAIN_Q031 | 1 | 60 | 0.079365 | 223.232887 | 3.777621 | 0.784788 | 0.03889 | 1 | 2 | 0.25 | 0.033357 | 0.000538 | 0.784788 | 0.03889 | 0.749851 | 0.935535 |
TRAIN_Q032 | 0 | 26 | 0.230769 | 42.766229 | 4.018564 | 0.679063 | 0.013143 | 0 | 2 | 0.25 | 0.063299 | 0.004088 | 0.66592 | 0.006646 | 0.661402 | 0.294496 |
TRAIN_Q033 | 1 | 12 | 0 | 29.79032 | 5.908436 | 0.608078 | 0.008023 | 1 | 2 | 0.25 | 0.055618 | 0.001766 | 0.608078 | 0.008023 | 0.601409 | 0.418488 |
TRAIN_Q034 | 1 | 21 | 0.238095 | 46.173743 | 2.141851 | 0.689775 | 0.000542 | 1 | 1 | 0.111111 | 0.045968 | 0.008989 | 0.679984 | 0.027999 | 0.657676 | 0.393202 |
TRAIN_Q035 | 0 | 18 | 0 | 39.958034 | 0.466043 | 0.665937 | 0.008406 | 1 | 2 | 0.25 | 0.050463 | 0.00003 | 0.665937 | 0.008406 | 0.656283 | 0.424773 |
TRAIN_Q036 | 0 | 29 | 0.310345 | 37.161398 | 1.132979 | 0.639412 | 0.007716 | 0 | 0 | 0 | 0.054721 | 0.000192 | 0.639412 | 0.024211 | 0.62097 | 0.13635 |
TRAIN_Q037 | 1 | 104 | 0.097087 | 178.105151 | 6.492738 | 0.697994 | 0.002885 | 0 | 3 | 0.428571 | 0.060652 | 0.000132 | 0.697994 | 0.020847 | 0.675249 | 0.268378 |
TRAIN_Q038 | 1 | 44 | 0 | 86.291539 | 5.599057 | 0.654914 | 0.003861 | 0 | 2 | 0.25 | 0.061205 | 0.003052 | 0.654914 | 0.034322 | 0.625796 | 0.341691 |
TRAIN_Q039 | 1 | 56 | 0.017857 | 89.294686 | 0.146613 | 0.828457 | 0.012277 | 1 | 3 | 0.428571 | 0.045231 | 0.00073 | 0.828457 | 0.012277 | 0.812269 | 0.544154 |
TRAIN_Q040 | 1 | 24 | 0.083333 | 58.221113 | 10.994633 | 0.684137 | 0.018444 | 0 | 2 | 0.25 | 0.062729 | 0.001396 | 0.684137 | 0.018444 | 0.669909 | 0.374942 |
TRAIN_Q041 | 1 | 42 | 0.190476 | 136.845191 | 22.441916 | 0.907623 | 0.005285 | 1 | 3 | 0.428571 | 0.03465 | 0.000559 | 0.907623 | 0.005285 | 0.904072 | 0.698123 |
TRAIN_Q042 | 1 | 50 | 0.145833 | 68.984817 | 1.32439 | 0.719336 | 0.023623 | 0 | 1 | 0.111111 | 0.06097 | 0.001995 | 0.719336 | 0.023623 | 0.697323 | 0.29542 |
TRAIN_Q043 | 1 | 32 | 0.222222 | 67.312363 | 1.151646 | 0.641711 | 0.004338 | 0 | 1 | 0.111111 | 0.056005 | 0.008173 | 0.625887 | 0.000119 | 0.625226 | 0.251374 |
TRAIN_Q044 | 1 | 31 | 0.129032 | 82.418522 | 20.826197 | 0.789032 | 0.047933 | 1 | 4 | 0.666667 | 0.042858 | 0.001021 | 0.789032 | 0.047933 | 0.756908 | 0.702992 |
TRAIN_Q045 | 1 | 35 | 0.057143 | 71.382516 | 2.577156 | 0.684462 | 0.004732 | 0 | 3 | 0.428571 | 0.063308 | 0.00236 | 0.67973 | 0.007411 | 0.673787 | 0.294679 |
TRAIN_Q046 | 1 | 18 | 0.277778 | 48.131253 | 1.624824 | 0.721448 | 0.000148 | 0 | 1 | 0.111111 | 0.061828 | 0.00213 | 0.7213 | 0.007313 | 0.713013 | 0.234798 |
TRAIN_Q047 | 1 | 44 | 0.173913 | 142.068977 | 7.288798 | 0.884744 | 0.001888 | 1 | 4 | 0.666667 | 0.037852 | 0.000158 | 0.884744 | 0.001888 | 0.883125 | 0.51928 |
TRAIN_Q048 | 1 | 43 | 0.093023 | 94.220265 | 27.878521 | 0.730165 | 0.06601 | 1 | 2 | 0.25 | 0.038301 | 0.002655 | 0.730165 | 0.09784 | 0.664414 | 0.91078 |
TRAIN_Q049 | 1 | 53 | 0.132075 | 89.282191 | 4.720052 | 0.867276 | 0.001823 | 1 | 3 | 0.428571 | 0.043196 | 0.001328 | 0.867276 | 0.011759 | 0.857748 | 0.459341 |
TRAIN_Q050 | 1 | 12 | 0.5 | 30.780931 | 8.055326 | 0.754524 | 0.08181 | 0 | 1 | 0.111111 | 0.056801 | 0.003938 | 0.754524 | 0.08181 | 0.699279 | 0.571934 |
TRAIN_Q051 | 0 | 55 | 0.070175 | 82.558942 | 5.787439 | 0.671693 | 0.000024 | 0 | 0 | 0 | 0.054923 | 0.007915 | 0.671693 | 0.000024 | 0.666805 | 0.228434 |
TRAIN_Q052 | 1 | 46 | 0.130435 | 117.404054 | 8.702123 | 0.885649 | 0.019917 | 1 | 3 | 0.428571 | 0.036556 | 0.000873 | 0.885649 | 0.019917 | 0.86436 | 0.717922 |
TRAIN_Q053 | 1 | 50 | 0.28 | 173.857423 | 65.280692 | 0.769655 | 0.037439 | 1 | 2 | 0.25 | 0.033526 | 0.000541 | 0.769655 | 0.03744 | 0.72404 | 0.926426 |
TRAIN_Q054 | 1 | 48 | 0.083333 | 107.651288 | 24.128677 | 0.768109 | 0.017612 | 0 | 2 | 0.25 | 0.057666 | 0.000861 | 0.768109 | 0.017612 | 0.740848 | 0.632692 |
TRAIN_Q055 | 1 | 51 | 0.27451 | 166.356433 | 63.445175 | 0.77306 | 0.03595 | 1 | 2 | 0.25 | 0.033708 | 0.000544 | 0.77306 | 0.03595 | 0.727957 | 0.902255 |
TRAIN_Q056 | 1 | 20 | 0 | 48.720879 | 15.397491 | 0.742382 | 0.030057 | 1 | 2 | 0.25 | 0.047439 | 0.001058 | 0.742382 | 0.030057 | 0.720861 | 0.717031 |
TRAIN_Q057 | 0 | 40 | 0.1 | 66.201947 | 12.824811 | 0.765642 | 0.007848 | 0 | 1 | 0.111111 | 0.060597 | 0.002221 | 0.765642 | 0.00892 | 0.759227 | 0.365104 |
TRAIN_Q058 | 1 | 22 | 0.166667 | 26.520807 | 2.701972 | 0.678483 | 0.003076 | 0 | 2 | 0.25 | 0.062305 | 0.0001 | 0.678483 | 0.003076 | 0.675572 | 0.226644 |
TRAIN_Q059 | 1 | 51 | 0.12 | 99.004165 | 30.274556 | 0.768609 | 0.048072 | 1 | 3 | 0.428571 | 0.040131 | 0.002837 | 0.768609 | 0.099118 | 0.701901 | 0.851378 |
TRAIN_Q060 | 1 | 89 | 0.111111 | 328.768434 | 220.857161 | 0.851918 | 0.16159 | 1 | 1 | 0.111111 | 0.032793 | 0.005566 | 0.851918 | 0.16159 | 0.74181 | 0.999966 |
TRAIN_Q061 | 0 | 26 | 0.038462 | 39.447784 | 1.56053 | 0.665833 | 0.017292 | 1 | 2 | 0.25 | 0.050022 | 0.001876 | 0.665833 | 0.0187 | 0.645086 | 0.466388 |
TRAIN_Q062 | 1 | 58 | 0.068966 | 112.871724 | 32.677945 | 0.839606 | 0.103265 | 1 | 2 | 0.25 | 0.035966 | 0.00058 | 0.839606 | 0.103265 | 0.762979 | 0.963114 |
TRAIN_Q063 | 1 | 41 | 0.333333 | 108.602236 | 1.456354 | 0.779161 | 0.015981 | 0 | 2 | 0.25 | 0.057377 | 0.000528 | 0.763179 | 0.013704 | 0.745419 | 0.336276 |
TRAIN_Q064 | 1 | 29 | 0.354839 | 55.264112 | 4.923521 | 0.656084 | 0.004616 | 1 | 3 | 0.428571 | 0.050508 | 0.00263 | 0.656084 | 0.004616 | 0.641687 | 0.332181 |
TRAIN_Q065 | 1 | 49 | 0.061224 | 153.938899 | 66.999595 | 0.866268 | 0.089991 | 1 | 1 | 0.111111 | 0.03365 | 0.000543 | 0.866268 | 0.089991 | 0.798491 | 0.984105 |
TRAIN_Q066 | 1 | 24 | 0.083333 | 48.306068 | 0.331319 | 0.708216 | 0.00157 | 1 | 2 | 0.333333 | 0.049457 | 0.000618 | 0.699339 | 0.001802 | 0.693813 | 0.314515 |
TRAIN_Q067 | 1 | 67 | 0.029851 | 102.110604 | 6.747609 | 0.755334 | 0.012169 | 0 | 3 | 0.428571 | 0.062488 | 0.001905 | 0.755334 | 0.012169 | 0.746953 | 0.331337 |
TRAIN_Q068 | 1 | 12 | 0.25 | 31.034203 | 5.552925 | 0.684594 | 0.015103 | 1 | 3 | 0.428571 | 0.052912 | 0.002148 | 0.684594 | 0.026302 | 0.666572 | 0.403711 |
TRAIN_Q069 | 1 | 30 | 0.1 | 67.144918 | 15.532517 | 0.79953 | 0.089969 | 1 | 2 | 0.25 | 0.039411 | 0.001644 | 0.79953 | 0.112668 | 0.722069 | 0.91975 |
TRAIN_Q070 | 1 | 38 | 0 | 181.730726 | 110.198536 | 0.878816 | 0.189446 | 1 | 2 | 0.25 | 0.033062 | 0.000533 | 0.878816 | 0.189446 | 0.745946 | 0.999755 |
TRAIN_Q071 | 1 | 30 | 0.066667 | 51.146103 | 0.421008 | 0.65749 | 0.068759 | 1 | 2 | 0.25 | 0.046311 | 0.001367 | 0.657489 | 0.068759 | 0.609422 | 0.687912 |
TRAIN_Q072 | 1 | 47 | 0.229167 | 145.64818 | 79.32099 | 0.855019 | 0.062287 | 1 | 2 | 0.25 | 0.03364 | 0.001323 | 0.855019 | 0.062287 | 0.802998 | 0.976821 |
TRAIN_Q073 | 1 | 51 | 0.039216 | 73.27278 | 9.711379 | 0.739632 | 0.019934 | 0 | 1 | 0.111111 | 0.062003 | 0.0054 | 0.739632 | 0.023504 | 0.722392 | 0.444728 |
TRAIN_Q074 | 0 | 34 | 0.088235 | 64.031393 | 1.414058 | 0.70224 | 0.015732 | 0 | 2 | 0.25 | 0.060981 | 0.005777 | 0.70224 | 0.017343 | 0.690511 | 0.361014 |
TRAIN_Q075 | 1 | 41 | 0.125 | 127.358831 | 8.530282 | 0.87639 | 0.007297 | 1 | 3 | 0.428571 | 0.036668 | 0.000269 | 0.87639 | 0.007297 | 0.87024 | 0.645739 |
TRAIN_Q076 | 1 | 48 | 0.25 | 158.31621 | 22.659434 | 0.858174 | 0.024016 | 1 | 2 | 0.25 | 0.033744 | 0.000807 | 0.858174 | 0.024016 | 0.841552 | 0.776465 |
TRAIN_Q077 | 0 | 65 | 0.046154 | 81.39652 | 3.227308 | 0.683772 | 0.013995 | 0 | 1 | 0.111111 | 0.060417 | 0.001844 | 0.669777 | 0.008165 | 0.659315 | 0.272909 |
TRAIN_Q078 | 0 | 58 | 0.172414 | 123.507892 | 10.467905 | 0.696137 | 0.029067 | 0 | 3 | 0.428571 | 0.059023 | 0.001861 | 0.66707 | 0.004752 | 0.663099 | 0.526451 |
TRAIN_Q079 | 0 | 107 | 0.056075 | 202.5797 | 32.493501 | 0.711138 | 0.004293 | 1 | 1 | 0.111111 | 0.035414 | 0.00202 | 0.711138 | 0.021715 | 0.696224 | 0.765441 |
TRAIN_Q080 | 1 | 58 | 0.224138 | 196.485743 | 27.698262 | 0.883063 | 0.013605 | 0 | 5 | 1 | 0.058173 | 0.000055 | 0.883063 | 0.013605 | 0.870022 | 0.347895 |
TRAIN_Q081 | 1 | 25 | 0.2 | 52.54255 | 2.239315 | 0.655731 | 0.020314 | 0 | 2 | 0.25 | 0.060749 | 0.002098 | 0.623526 | 0.000245 | 0.619734 | 0.348064 |
TRAIN_Q082 | 1 | 30 | 0.066667 | 73.202249 | 20.149747 | 0.606261 | 0.001192 | 1 | 1 | 0.111111 | 0.044173 | 0.003501 | 0.594666 | 0.028538 | 0.575087 | 0.503921 |
TRAIN_Q083 | 1 | 252 | 0.208494 | 399.488035 | 44.625254 | 0.719593 | 0.022542 | 1 | 2 | 0.25 | 0.033659 | 0.001326 | 0.719593 | 0.022542 | 0.703951 | 0.814231 |
TRAIN_Q084 | 1 | 60 | 0.2 | 210.293136 | 55.133651 | 0.890878 | 0.014631 | 1 | 3 | 0.428571 | 0.033078 | 0.000791 | 0.890878 | 0.014631 | 0.875735 | 0.871859 |
TRAIN_Q085 | 1 | 61 | 0.081967 | 83.499983 | 9.175671 | 0.748648 | 0.006162 | 1 | 1 | 0.111111 | 0.04652 | 0.001093 | 0.748648 | 0.006162 | 0.734845 | 0.491761 |
TRAIN_Q086 | 0 | 77 | 0.213333 | 137.437623 | 1.103145 | 0.729105 | 0.007156 | 0 | 2 | 0.25 | 0.057354 | 0.000031 | 0.721949 | 0.006104 | 0.715807 | 0.268406 |
TRAIN_Q087 | 1 | 76 | 0.146667 | 110.790117 | 9.356187 | 0.748424 | 0.027024 | 1 | 2 | 0.25 | 0.041301 | 0.003002 | 0.748424 | 0.027024 | 0.730221 | 0.59358 |
TRAIN_Q088 | 0 | 65 | 0.107692 | 213.6367 | 53.009257 | 0.797303 | 0.028948 | 1 | 5 | 1 | 0.037005 | 0.000872 | 0.797303 | 0.028948 | 0.775807 | 0.844259 |
TRAIN_Q089 | 1 | 41 | 0.121951 | 99.315659 | 8.704468 | 0.83367 | 0.005186 | 0 | 2 | 0.25 | 0.056211 | 0.000377 | 0.828484 | 0.003216 | 0.822616 | 0.401095 |
TRAIN_Q090 | 1 | 34 | 0.28 | 50.276056 | 4.825099 | 0.844466 | 0.016911 | 1 | 2 | 0.25 | 0.048088 | 0.000776 | 0.844466 | 0.016911 | 0.82183 | 0.516155 |
TRAIN_Q091 | 1 | 50 | 0.0625 | 146.084792 | 17.400924 | 0.772713 | 0.032098 | 1 | 2 | 0.25 | 0.035252 | 0.001123 | 0.772713 | 0.111152 | 0.691698 | 0.777151 |
TRAIN_Q092 | 1 | 36 | 0.147059 | 51.362427 | 18.235496 | 0.709283 | 0.002183 | 0 | 1 | 0.111111 | 0.053941 | 0.015059 | 0.709283 | 0.002183 | 0.706691 | 0.398643 |
TRAIN_Q093 | 1 | 43 | 0.113636 | 122.674298 | 19.541865 | 0.902102 | 0.007582 | 1 | 4 | 0.666667 | 0.038496 | 0.000018 | 0.902102 | 0.007582 | 0.887381 | 0.665264 |
TRAIN_Q094 | 0 | 58 | 0.12069 | 68.062572 | 0.411803 | 0.636025 | 0.001732 | 0 | 0 | 0 | 0.035575 | 0.000574 | 0.593909 | 0.012217 | 0.582323 | 0.104123 |
TRAIN_Q095 | 0 | 29 | 0.206897 | 53.408664 | 1.761151 | 0.75839 | 0.012505 | 0 | 2 | 0.25 | 0.060609 | 0.002294 | 0.75839 | 0.012505 | 0.747305 | 0.325054 |
TRAIN_Q096 | 0 | 86 | 0.136364 | 102.158493 | 0.703603 | 0.761931 | 0.004529 | 0 | 1 | 0.111111 | 0.060931 | 0.005014 | 0.757402 | 0.011798 | 0.74765 | 0.267291 |
TRAIN_Q097 | 1 | 56 | 0.017857 | 83.564049 | 7.273163 | 0.719994 | 0.037673 | 1 | 2 | 0.25 | 0.045134 | 0.001804 | 0.719994 | 0.037673 | 0.693425 | 0.66038 |
TRAIN_Q098 | 1 | 31 | 0.133333 | 63.3728 | 8.406579 | 0.672697 | 0.012532 | 0 | 3 | 0.428571 | 0.062238 | 0.001943 | 0.672697 | 0.01919 | 0.658872 | 0.303583 |
TRAIN_Q099 | 0 | 21 | 0.285714 | 70.076441 | 13.537545 | 0.64466 | 0.001223 | 0 | 2 | 0.25 | 0.05854 | 0.000709 | 0.64466 | 0.001223 | 0.635653 | 0.270766 |
- Quick overview
- 1. What this repository is
- 2. Research question
- 3. Systems compared
- 4. Experimental design
- 5. Adaptive Hybrid RRF
- 6. Held-out retrieval results
- 7. End-to-end generation comparison
- 8. Evidence-sufficiency / abstention analysis
- 9. Why retrieval and generation can disagree
- 10. Repository contents
- 11. Quick inspection without rerunning the notebook
- 12. Reproducing the experiment
- 13. Intended use
- 14. Limitations
- 15. Dataset provenance and license
- 16. Reproducibility safeguards
- 17. Main conclusion
- 18. Associated selected system
- Citation
- Upstream models and resources
- Repository
TechQA Hybrid RAG System Comparison
A reproducible evaluation package comparing five retrieval strategies for technical-support Retrieval-Augmented Generation (RAG) on the reduced nvidia/TechQA-RAG-Eval corpus.
This repository contains the executed experiment notebook and evaluation artifacts used to compare lexical, dense, hybrid, reranked, and query-adaptive retrieval under a controlled downstream generation setup.
Primary retrieval result: Adaptive Hybrid RRF achieved the strongest overall held-out document-ranking performance and was selected as the primary retrieval strategy.
Important downstream result: Static Hybrid RRF remained highly competitive and achieved the strongest automated generation metrics on the fixed 30-question generation subset.
These are not contradictory results: document ranking quality and frozen-generator answer quality are related, but they are not the same objective.
Quick overview
| Item | Setting |
|---|---|
| Upstream dataset | nvidia/TechQA-RAG-Eval |
| Experimental corpus | 496 unique Technotes |
| QA rows | 910 |
| TRAIN | 600 questions |
| DEV | 310 questions |
| Answerable DEV retrieval evaluation | 160 questions |
| Generation evaluation | Fixed 30 answerable DEV questions |
| Dense retriever | BAAI/bge-base-en-v1.5 |
| Neural reranker | BAAI/bge-reranker-base |
| Generator | Qwen/Qwen2.5-7B-Instruct |
| Generator precision | 4-bit NF4 |
| Chunk size / overlap | 384 / 64 tokens |
| Evidence budget | 5 chunks, max 2 per document |
| Max prompt length | 4096 tokens |
| Max new tokens | 256 |
| Fine-tuning | None |
| Primary retrieval strategy | Adaptive Hybrid RRF |
1. What this repository is
This is an experiment / evaluation repository, not a newly trained language model and not a replacement copy of the upstream TechQA dataset.
It is intended to make the system comparison transparent and reproducible by publishing:
- the complete executed notebook;
- per-system retrieval metrics;
- per-question retrieval outputs;
- all 150 generated answers from the fixed generation comparison;
- Adaptive-router training and diagnostics;
- abstention / evidence-sufficiency analysis;
- Adaptive-vs-baseline pairwise summaries;
- experiment configuration and checksums.
What this repository is not
- It is not a fine-tuned Qwen checkpoint.
- It is not a fine-tuned BGE model.
- It is not a new version of TechQA.
- It does not claim that Adaptive Hybrid RRF wins every downstream metric.
- It does not claim statistical significance.
A separate Hugging Face Model repository for the selected Adaptive Hybrid RRF system will be linked here after it is published.
2. Research question
How effective are lexical, dense, static-hybrid, neural-reranked, and query-adaptive retrieval strategies for retrieval-augmented technical-support question answering when the corpus, chunking, generator, prompt, and evidence budget are held constant?
The controlled variable is the retrieval strategy.
The BGE retriever, reranker, and Qwen generator remain frozen. No LoRA or QLoRA is used.
3. Systems compared
| System | Role | Main idea |
|---|---|---|
| BM25 | Lexical baseline | Exact-term / token matching |
| Dense BGE | Semantic baseline | Dense similarity using BAAI/bge-base-en-v1.5 |
| Static Hybrid RRF | Fixed hybrid baseline | Equal-weight BM25 + Dense Reciprocal Rank Fusion |
| Static RRF + Neural Reranker | Reranking ablation | Cross-encoder reranking of Static-RRF candidates |
| Adaptive Hybrid RRF | Primary retrieval strategy | TRAIN-learned query router changes BM25/Dense fusion weights per query |
The neural reranker is an evaluation-only ablation. It is not part of the Adaptive Hybrid RRF pipeline.
4. Experimental design
The experiment keeps the corpus, chunking, generator, prompt, decoding settings, and evidence budget fixed across all five systems.
Reduced TechQA-RAG-Eval
|
+-- TRAIN
| |
| +-- query-router training
| +-- adaptive fusion-strength selection
| `-- evidence-sufficiency / abstention calibration
|
`-- DEV
|
+-- full retrieval evaluation
+-- fixed 30-question generation comparison
`-- qualitative answer inspection
Data split used by the experiment
| Split | Total | Answerable | Impossible |
|---|---|---|---|
| TRAIN | 600 | 450 | 150 |
| DEV | 310 | 160 | 150 |
| Total | 910 | 610 | 300 |
Chunking and evidence budget
- text-preserving chunking;
- chunk size: 384 tokens;
- overlap: 64 tokens;
- generation evidence budget: 5 chunks;
- maximum 2 chunks per document;
- maximum prompt length: 4096 tokens;
- maximum generated length: 256 new tokens.
5. Adaptive Hybrid RRF
Adaptive Hybrid RRF keeps the same BM25 and Dense BGE retrievers as the fixed hybrid baseline, but replaces a single global fusion ratio with a query-dependent fusion decision.
Question
|
+---------+---------+
| |
v v
BM25 ranking Dense BGE ranking
| |
+---------+---------+
|
v
TRAIN-learned router
|
v
query-specific fusion weights
|
v
Reciprocal Rank Fusion
|
v
Adaptive Hybrid RRF
Router training
The router is trained only on answerable TRAIN questions.
TRAIN router target distribution:
| Router class | Samples |
|---|---|
| BM25-heavy | 17 |
| Balanced | 371 |
| Dense-heavy | 62 |
| Total | 450 |
Out-of-fold router diagnostics:
| Metric | Value |
|---|---|
| Accuracy | 0.7311 |
| Balanced accuracy | 0.5182 |
| Macro F1 | 0.4762 |
The selected specialist fusion boost is:
ADAPTIVE_HEAVY_WEIGHT = 3.0
It is chosen from TRAIN out-of-fold evaluation, not from DEV.
The router is intentionally lightweight: it adapts the fusion weights without fine-tuning BGE or Qwen.
6. Held-out retrieval results
Retrieval is evaluated on all 160 answerable DEV questions.
| System | R@1 | R@5 | R@10 | MRR@10 | nDCG@10 | Mean latency (ms) |
|---|---|---|---|---|---|---|
| Adaptive Hybrid RRF | 0.8500 | 0.9438 | 0.9688 | 0.8891 | 0.9083 | 54.63 |
| Static Hybrid RRF | 0.8500 | 0.9313 | 0.9688 | 0.8884 | 0.9076 | 57.07 |
| Dense BGE | 0.7938 | 0.9625 | 0.9750 | 0.8617 | 0.8899 | 20.01 |
| BM25 | 0.8000 | 0.9063 | 0.9250 | 0.8473 | 0.8664 | 33.20 |
| Static RRF + Neural Reranker | 0.7438 | 0.9313 | 0.9688 | 0.8213 | 0.8572 | 1592.13 |
Retrieval interpretation
- Adaptive Hybrid RRF has the strongest overall top-rank performance by MRR@10 and nDCG@10 and ties for the best R@1.
- Dense BGE remains strongest at deeper R@5/R@10 recall.
- Static Hybrid RRF is extremely competitive and only slightly behind Adaptive on the ranking metrics.
- Neural reranking does not improve the controlled baseline and adds substantial latency.
For this reason, Adaptive Hybrid RRF is selected as the primary retrieval strategy, not as a claim that it dominates every metric.
7. End-to-end generation comparison
Generation uses the same frozen Qwen/Qwen2.5-7B-Instruct model, prompt design, decoding configuration, and 5-chunk evidence budget for every retrieval system.
The comparison uses the same fixed 30 answerable DEV questions for all five systems.
| System | Answer rate | False abstention | Gold retrieval | ROUGE-L | BGE answer cosine |
|---|---|---|---|---|---|
| Static Hybrid RRF | 60.0% | 40.0% | 96.7% | 0.2249 | 0.6914 |
| Adaptive Hybrid RRF | 60.0% | 40.0% | 100.0% | 0.2081 | 0.6790 |
| Dense BGE | 53.3% | 46.7% | 96.7% | 0.1854 | 0.6743 |
| BM25 | 46.7% | 53.3% | 90.0% | 0.1855 | 0.6540 |
| Static RRF + Neural Reranker | 56.7% | 43.3% | 96.7% | 0.1575 | 0.6691 |
Generation interpretation
The generation experiment shows an important distinction:
Best overall held-out document ranking
-> Adaptive Hybrid RRF
Best automated generation metrics on the fixed 30-question subset
-> Static Hybrid RRF
Adaptive retrieved the gold document for 30/30 generation questions, but the frozen generator still abstained on some answerable questions or did not always use the retrieved evidence optimally.
Static and Adaptive produced identical generated answers on most questions. The small number of differing outputs is one reason the modest generation-score difference should not be overstated.
Full outputs are published in:
results/generation_eval_outputs_comparison.csv
This file includes:
- question;
- reference answer;
- generated answer;
- gold-document retrieval flag;
- evidence similarity;
- abstention status;
- citation checks;
- ROUGE-L;
- BGE answer similarity;
- latency.
8. Evidence-sufficiency / abstention analysis
Retrieval relevance and answerability are treated as related but separate problems.
A lightweight evidence-sufficiency classifier is calibrated using TRAIN out-of-fold predictions.
TRAIN calibration
| Item | Value |
|---|---|
| Selected threshold | 0.535 |
| TRAIN OOF ROC-AUC | 0.7806 |
Held-out DEV evaluation
The auxiliary classifier is evaluated on all 310 DEV questions:
| Metric | Value |
|---|---|
| Answerable answer rate | 0.6750 |
| Impossible abstention rate | 0.8133 |
| False-answer rate on impossible questions | 0.1867 |
| Balanced accuracy | 0.7442 |
| Overall accuracy | 0.7419 |
| ROC-AUC | 0.8095 |
This module is reported as an auxiliary diagnostic, not as the main research contribution.
9. Why retrieval and generation can disagree
A correct document being retrieved does not guarantee that the generator will produce the best answer.
Possible downstream failure points include:
correct document retrieved
|
v
relevant passage may be split across chunks
|
v
only a limited evidence budget reaches Qwen
|
v
Qwen may under-use evidence or abstain
|
v
generated answer can still be incomplete or wrong
This explains why Adaptive can achieve the strongest full-DEV ranking while Static can still obtain slightly stronger generation metrics on a smaller fixed subset.
10. Repository contents
TechQA-Hybrid-RAG-System-Comparison/
|
|-- README.md
|-- TechQA_Hybrid_RAG_Qwen25_7B_System_Comparison.ipynb
|-- requirements.txt
|-- manifest.json
|
`-- results/
|-- retrieval_metrics_comparison.csv
|-- retrieval_detail_comparison.csv
|-- generation_eval_questions_comparison.csv
|-- generation_eval_outputs_comparison.csv
|-- generation_metrics_comparison.csv
|
|-- adaptive_weight_search_comparison.csv
|-- router_*.csv
|-- abstention_*.csv
|-- adaptive_vs_*.csv
|-- oracle_specialist_upper_bound_comparison.csv
|-- manual_generation_review_template_comparison.csv
`-- experiment_config_comparison.json
Key files
| File | What it contains |
|---|---|
TechQA_Hybrid_RAG_Qwen25_7B_System_Comparison.ipynb |
Complete executed experiment and reproduction notebook |
results/retrieval_metrics_comparison.csv |
Five-system retrieval summary |
results/retrieval_detail_comparison.csv |
Per-question held-out retrieval results |
results/generation_eval_questions_comparison.csv |
Fixed 30-question generation subset |
results/generation_eval_outputs_comparison.csv |
All 150 generated outputs (30 × 5 systems) |
results/generation_metrics_comparison.csv |
Aggregated generation metrics |
results/adaptive_weight_search_comparison.csv |
TRAIN-only search for Adaptive fusion strength |
results/router_*.csv |
Router OOF training and DEV diagnostics |
results/abstention_*.csv |
Evidence-sufficiency calibration and evaluation |
results/adaptive_vs_*.csv |
Adaptive-vs-baseline pairwise generation comparisons |
results/experiment_config_comparison.json |
Experiment settings |
manifest.json |
SHA-256 checksum and file size for released files |
11. Quick inspection without rerunning the notebook
Clone the repository or download the CSV files and inspect them directly with pandas:
import pandas as pd
retrieval = pd.read_csv("results/retrieval_metrics_comparison.csv")
generation = pd.read_csv("results/generation_metrics_comparison.csv")
outputs = pd.read_csv("results/generation_eval_outputs_comparison.csv")
print(retrieval)
print(generation)
# Compare all five answers for one evaluation question.
qid = outputs["id"].iloc[0]
print(
outputs.loc[
outputs["id"].eq(qid),
["system", "question", "reference_answer", "generated_answer"]
].to_string(index=False)
)
12. Reproducing the experiment
The easiest setup is Google Colab with a T4-class GPU.
- Open
TechQA_Hybrid_RAG_Qwen25_7B_System_Comparison.ipynb. - Select a GPU runtime.
- Run the notebook from top to bottom.
- The notebook downloads the public upstream dataset and pretrained models.
- It rebuilds the reduced corpus, chunks, embeddings, and indexes.
- It trains/selects the lightweight Adaptive router using TRAIN only.
- It evaluates all five retrieval strategies on answerable DEV.
- It evaluates evidence-sufficiency on DEV.
- It runs the fixed 30-question generation comparison.
- It exports the detailed CSV/JSON results.
The generation stage is the slowest stage because Qwen is run for every system/question pair.
Main dependencies
datasetstransformersacceleratebitsandbytessentence-transformersfaiss-cpurank-bm25rouge-scorepandasscikit-learn
See requirements.txt for the release environment.
13. Intended use
This repository is intended for:
- RAG retrieval research;
- technical-support retrieval evaluation;
- BM25 vs dense vs hybrid comparison;
- query-adaptive fusion experiments;
- reranking ablation studies;
- analysis of retrieval-vs-generation behavior;
- reproducibility and educational use.
It can also serve as a reference implementation for building lightweight query-adaptive hybrid retrievers without fine-tuning the underlying embedding model.
14. Limitations
Please keep the following limitations in mind:
Reduced corpus
The experiment uses the reducedTechQA-RAG-Evalcorpus, not the original full TechQA / full IBM Technotes collection.Generation subset size
End-to-end generation is evaluated on 30 answerable DEV questions rather than all 160 answerable DEV questions because generation is substantially more expensive.No significance claim
Differences between systems should not be interpreted as statistically significant unless paired significance testing is added.Automated generation metrics are incomplete
ROUGE-L and embedding similarity do not fully capture technical correctness, completeness, or harmful inaccuracies.Frozen generator
Qwen is not fine-tuned for this task. Some failures arise after successful retrieval because the generator may abstain or under-use evidence.Router class imbalance
Most TRAIN router targets areBalanced; BM25-heavy examples are relatively rare. Balanced accuracy and macro F1 should therefore be considered alongside raw router accuracy.Reranker conclusion is experiment-specific
The neural reranker underperforms in this controlled setup. This should not be generalized to all rerankers, datasets, or candidate-selection strategies.Technical-support outputs require verification
Generated answers are experimental outputs and should not be treated as authoritative production support guidance without checking the cited source documentation.
15. Dataset provenance and license
The upstream dataset is nvidia/TechQA-RAG-Eval, a reduced version of the original TechQA benchmark designed for RAG evaluation.
The upstream Hugging Face dataset card lists the license as Apache-2.0.
This repository does not republish the full upstream source corpus as a new dataset. Source-derived cache files are excluded from the public release by default and can be rebuilt through the notebook.
Original TechQA reference:
- IBM TechQA: https://github.com/IBM/techqa
16. Reproducibility safeguards
The experiment is designed to avoid DEV leakage:
- router targets are derived from TRAIN;
- router model selection uses TRAIN out-of-fold predictions;
- Adaptive fusion strength is selected on TRAIN;
- abstention threshold is selected on TRAIN out-of-fold predictions;
- DEV references are used only for held-out evaluation;
- the same fixed generation question set is used for all five systems;
- the same generator and evidence budget are used for all systems.
17. Main conclusion
The controlled comparison supports the following conclusion:
Adaptive Hybrid RRF achieved the strongest overall held-out document-ranking performance and was therefore selected as the primary retrieval strategy. Static Hybrid RRF remained highly competitive and achieved the strongest automated generation metrics on the fixed 30-question generation subset. Dense BGE remained strongest at deeper recall, while the evaluated neural reranker did not provide a reliable improvement.
The main finding is therefore not that one system wins every metric.
Instead:
Query-adaptive BM25/Dense fusion can improve overall top-rank retrieval quality, while downstream answer quality remains sensitive to passage selection, evidence budgeting, abstention behavior, and the frozen generator.
18. Associated selected system
A separate Hugging Face Model repository will package the selected Adaptive Hybrid RRF retrieval system for easier reuse.
Once published, its link will be added here.
The comparison repository remains the source of the experimental evidence used to justify that selection.
Citation
If you use this experiment package, please cite the repository:
@misc{vltruong01_techqa_hybrid_rag_2026,
author = {vltruong01},
title = {TechQA Hybrid RAG System Comparison},
year = {2026},
howpublished = {Hugging Face},
url = {https://huggingface.co/datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison}
}
Please also follow the citation / attribution guidance of the upstream TechQA and TechQA-RAG-Eval resources.
Upstream models and resources
- Dataset:
nvidia/TechQA-RAG-Eval - Original TechQA: IBM/techqa
- Dense retriever:
BAAI/bge-base-en-v1.5 - Neural reranker:
BAAI/bge-reranker-base - Generator:
Qwen/Qwen2.5-7B-Instruct
Repository
Hugging Face Dataset:
https://huggingface.co/datasets/vltruong01/TechQA-Hybrid-RAG-System-Comparison
- Downloads last month
- -