Skip to content

Free tags results ​

INFO

This page records measurements. It is not required reading: you can use the package without it.

The results of the free tags experiment, which tests tags that cost no model call.

Results ​

Run log ​

All test runs are at commit 1674f3d, with --index-dir, in the order potion-256, MiniLM-384, bge-small-384, on one MacBook Pro M1. The result files record dirty: true: the tree held one uncommitted edit of documentation/reproduce-tagged-retrieval-procedure.md, a page that this evaluation does not use. No other file differed from the commit. The split digests are those of the registration.

CorpusChunksTest queriespotion-256MiniLM-384bge-small-384
Code set7381622 min4 min14 min
LegalBench-RAG7,1993748 min29 min126 min
Engineering pages5,2934187 min23 min98 min
FinanceBench27,92211010 min93 min511 min

The potion runs include the timing pass. The development runs of the exploration step are kept as free-dev-*.json for the code set, LegalBench-RAG and the engineering pages with potion-256 and MiniLM-384, and for FinanceBench with potion-256. The dev runs were stopped when the test runs began, because nothing they show can change the registered conditions or rule. They are on a dirty tree and do not enter the decision.

Test results ​

Pass@20 in hybrid search against B, on the primary stratum (contextual for the engineering pages, all queries elsewhere), with the 95% paired bootstrap interval. * marks a gain that Holm over the 96 tests of this evaluation rejects, with an interval above zero. No test shows a counted loss.

Code set

ModelBaseline Pass@20THPTHFTHFCTHC
potion-2560.810+0.033 [+0.011, +0.060]+0.040 [+0.014, +0.070]+0.023 [-0.004, +0.052]+0.044 [+0.017, +0.077]+0.003 [-0.032, +0.038]+0.042 [+0.009, +0.079]+0.062 [+0.018, +0.108]+0.076 [+0.029, +0.125]
MiniLM-3840.768+0.043 [+0.004, +0.085]+0.032 [-0.012, +0.077]+0.068 [+0.023, +0.114]+0.071 [+0.026, +0.116]+0.037 [-0.013, +0.089]+0.041 [-0.014, +0.094]+0.129 [+0.079, +0.182] *+0.117 [+0.067, +0.170] *
bge-small-3840.898+0.017 [+0.001, +0.039]+0.010 [-0.011, +0.034]-0.003 [-0.037, +0.031]+0.014 [-0.008, +0.039]-0.013 [-0.048, +0.020]-0.002 [-0.031, +0.027]+0.050 [+0.016, +0.086]+0.050 [+0.016, +0.087]

LegalBench-RAG

ModelBaseline Pass@20THPTHFTHFCTHC
potion-2560.583+0.035 [+0.013, +0.058]+0.066 [+0.039, +0.095] *+0.053 [+0.030, +0.078] *+0.096 [+0.063, +0.130] *+0.071 [+0.044, +0.099] *+0.108 [+0.071, +0.145] *+0.037 [+0.000, +0.074]+0.150 [+0.109, +0.192] *
MiniLM-3840.616+0.100 [+0.066, +0.135] *+0.116 [+0.079, +0.155] *+0.109 [+0.075, +0.146] *+0.151 [+0.112, +0.190] *+0.110 [+0.072, +0.149] *+0.176 [+0.135, +0.219] *+0.147 [+0.101, +0.192] *+0.219 [+0.174, +0.265] *
bge-small-3840.714+0.142 [+0.107, +0.178] *+0.140 [+0.105, +0.175] *+0.130 [+0.095, +0.166] *+0.150 [+0.113, +0.187] *+0.135 [+0.098, +0.171] *+0.168 [+0.133, +0.204] *+0.121 [+0.081, +0.162] *+0.173 [+0.131, +0.214] *

Engineering pages

ModelBaseline Pass@20THPTHFTHFCTHC
potion-2560.632+0.030 [+0.015, +0.046] *+0.055 [+0.035, +0.074] *+0.022 [+0.009, +0.036] *+0.066 [+0.041, +0.090] *+0.018 [+0.006, +0.031]+0.077 [+0.051, +0.102] *+0.088 [+0.064, +0.112] *+0.121 [+0.092, +0.151] *
MiniLM-3840.655+0.061 [+0.034, +0.088] *+0.071 [+0.041, +0.101] *+0.052 [+0.026, +0.079] *+0.064 [+0.034, +0.095] *+0.050 [+0.028, +0.074] *+0.058 [+0.025, +0.090] *+0.071 [+0.041, +0.102] *+0.048 [+0.015, +0.082]
bge-small-3840.746+0.045 [+0.023, +0.069] *+0.056 [+0.032, +0.080] *+0.033 [+0.009, +0.059]+0.048 [+0.019, +0.078]+0.040 [+0.021, +0.061] *+0.045 [+0.015, +0.075]+0.074 [+0.046, +0.103] *+0.059 [+0.027, +0.089] *

FinanceBench

ModelBaseline Pass@20THPTHFTHFCTHC
potion-2560.209+0.009 [-0.018, +0.045]+0.014 [-0.018, +0.045]+0.009 [-0.018, +0.045]+0.032 [-0.023, +0.086]-0.009 [-0.055, +0.036]+0.045 [-0.009, +0.100]+0.050 [+0.014, +0.095]+0.050 [-0.005, +0.109]
MiniLM-3840.262+0.041 [-0.005, +0.091]+0.045 [-0.005, +0.095]+0.041 [-0.005, +0.091]+0.064 [+0.005, +0.123]+0.105 [+0.041, +0.173]+0.147 [+0.071, +0.226] *+0.242 [+0.150, +0.335] *+0.242 [+0.153, +0.335] *
bge-small-3840.380+0.132 [+0.064, +0.205] *+0.155 [+0.091, +0.223] *+0.136 [+0.073, +0.209] *+0.150 [+0.082, +0.223] *+0.127 [+0.045, +0.209]+0.082 [-0.005, +0.168]+0.124 [+0.032, +0.218]+0.120 [+0.026, +0.214]

Time to embed ​

Growth of the time to embed the texts of each condition with potion-256, against B, uncached, best of three runs. The time of B is in the first column.

CorpusB (seconds)THPTHFTHFCTHC
Code set0.1+1%+5%+4%-1%+5%+11%+18%+31%
LegalBench-RAG1.8+5%+8%+4%+12%+9%+23%+17%+36%
Engineering pages0.9+4%+4%+2%+9%+1%+8%+21%+28%
FinanceBench6.9+3%+6%+1%+5%+4%+7%+19%+24%

The time of B on the code set is 0.1 second, so its percentages are noise (TH is below B). The figure that counts for the rule is the largest growth over the four corpora, in the next table.

Decision ​

ConditionModels with a gain on 3 or more corporaCorpora with a gain, per modelCounted lossesLargest time growthDefault
T1 of 3potion-256: 1; MiniLM-384: 2; bge-small-384: 30+5%no
H1 of 3potion-256: 2; MiniLM-384: 2; bge-small-384: 30+8%no
P0 of 3potion-256: 2; MiniLM-384: 2; bge-small-384: 20+4%no
TH0 of 3potion-256: 2; MiniLM-384: 2; bge-small-384: 20+12%no
F0 of 3potion-256: 1; MiniLM-384: 2; bge-small-384: 20+9%no
THF1 of 3potion-256: 2; MiniLM-384: 3; bge-small-384: 10+23%no
C1 of 3potion-256: 1; MiniLM-384: 4; bge-small-384: 20+21%no
THC1 of 3potion-256: 2; MiniLM-384: 3; bge-small-384: 20+36%no

No tag set becomes a default, and the default of tag_fields does not change. The rule asks for a counted gain on at least three corpora with at least two models. H comes closest: three corpora with bge-small-384, and two with potion-256 and MiniLM-384, no loss, and 8% more time to embed. T, P and TH fall further short. THF, C and THC also fail on time, with growth above 20%.

What the figures show, for guidance and not for the decision:

  • The point estimates of T, H and TH are positive on all twelve combinations of corpus and model, and those of P on eleven. No interval lies entirely below zero.
  • For T, H, P and TH, the gain runs from +0.035 to +0.151 on LegalBench-RAG, where it is counted for nearly every model, from +0.022 to +0.066 on the engineering pages, counted for T and H with all three models, from -0.003 to +0.071 on the code set, where none is counted, and from +0.009 to +0.150 on FinanceBench, counted only with bge-small-384.
  • The rule misses because of the number of tests and of questions. The code set has 162 test questions and FinanceBench 110, and Holm covers 96 tests. A rule with fewer conditions, or more questions on these two corpora, could have a different outcome. Changing the rule now, after seeing these results, would not be a pre-registered test.
  • Titles, headings and paths cost 4% to 12% more time to embed with potion-256. Section tags written by a model (C) gain more on most corpora, and cost 17% to 21% more, plus the cost of the model.

Next steps ​