Commit b21617c
docs(qdrant): fix multivector README distance claims, round 4
Round 4 found the round-3 README fix was wrong again, in a new way -- third
consecutive round the same paragraph has been wrong:
- The sentence claimed cosine/angular/euclid all "hard-error at load" via the
normalization guard. False for euclid specifically: needs_normalization()
only matches cosine/angular, so euclid never trips that guard at all. The
only thing that rejects euclid is map_qdrant_distance, called solely from
Engine::configure()'s create-collection paths -- which --skip-upload skips
entirely. So a euclid-registered multivector dataset run with --skip-upload
against an existing collection silently passes both checks, contrary to
what the README claimed. Rewrote to separate the two mechanisms: the
normalization guard (cosine/angular/omitted, fires on every read path
including --skip-upload) from collection-creation-time rejection of any
other unrecognized string (configure()-only, bypassed by --skip-upload).
- A round-3 fix to the test doc comment replaced a unit error ("docs" vs "KB")
with a magnitude error: the fixture is actually ~56 KB (150 docs x mean 6
tokens x 16 dims x 4 bytes), not "well under a KB" -- and ~350x under the
20000 KB threshold, not "several orders of magnitude". Corrected with the
actual computed size.
- Also: reworded write_multivector_project_with_distance's doc comment,
which claimed a test purpose (exercising the guard against cosine) that
the actual test doesn't use it for; and added the dot-only-ground-truth
caveat directly to the README paragraph, not just to generate_multivector's
doc comment, so a reader hits it before registering an l2 dataset.
All via 9-way agent consensus, verified live (text-only changes; reran both
multivector integration tests to confirm no regression).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 10db083 commit b21617c
3 files changed
Lines changed: 26 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
922 | | - | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
923 | 924 | | |
924 | 925 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
929 | 936 | | |
930 | 937 | | |
931 | 938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
1740 | 1743 | | |
1741 | 1744 | | |
1742 | 1745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
0 commit comments