Eval results

Numbers from the commands in the repo, run once on one laptop with the real embedding model. They are copied here as static data, not measured in your browser. Each section names the command that makes it. The questions and labels were written by hand and the set is small, so treat differences of one question as noise.

Search: does the right passage come back?

npm run eval. 30 questions, 1268 passages. A hit is a top 5 result from the right doc and section.

searchrecall@5MRRavg ms per query
keyword0.7000.5850.2
vector0.8670.6842.5
hybrid0.9000.7032.2

Right doc only:

searchrecall@5MRRavg ms per query
keyword1.0000.8720.2
vector1.0000.9832.5
hybrid1.0001.0002.2

Citation check

npm run eval:trust. 36 claims I wrote by hand, each paired with a passage, some backed by it and some not. This is the offline word-overlap check; the model-based check was not run (no key).

precisionrecallinvented claims rejectedwrong-passage claims rejectedcontradictions rejected
72.7%94.1%6 of 85 of 52 of 6

Saying "I couldn't find this"

npm run eval:trust. 30 answerable questions and 12 the docs cannot answer. A question is refused when its closest passage scores below the cut-off. The demo uses 0.45.

refuse belowanswerable wrongly refusedunanswerable correctly refused
0.30.0%33.3%
0.350.0%50.0%
0.40.0%58.3%
0.4510.0%66.7%
0.526.7%91.7%
0.5543.3%91.7%

Questionnaire mode: reusing answers

npm run eval:questionnaire. 12 rephrased questions and 8 different questions on the same topic, checked against the 30 already answered.

reuse at leastrephrased matcheddifferent wrongly matched
0.612 of 122 of 8
0.6512 of 121 of 8
0.710 of 121 of 8
0.758 of 121 of 8
0.86 of 121 of 8
0.854 of 120 of 8

Incremental sync

npm run bench:sync. Time to bring the index up to date after one change, compared with a full rebuild.

stepdocumentschunks embeddedtime
full build37 added, 0 changed, 0 deleted127918.0 s
nothing changed0 added, 0 changed, 0 deleted034 ms
one word edited in one doc0 added, 1 changed, 0 deleted145 ms
a paragraph appended to one doc0 added, 1 changed, 0 deleted131 ms
one new Markdown file1 added, 0 changed, 0 deleted130 ms
one doc deleted0 added, 0 changed, 1 deleted027 ms
full build again (for comparison)37 added, 0 changed, 0 deleted127016.3 s